Files
admin_hura_8/node_modules/daisyui/functions/plugin.js

12 lines
344 B
JavaScript
Raw Normal View History

2025-12-07 15:58:07 +07:00
export const plugin = {
withOptions: (pluginFunction, configFunction = () => ({})) => {
const optionsFunction = (options) => {
const handler = pluginFunction(options)
const config = configFunction(options)
return { handler, config }
}
optionsFunction.__isOptionsFunction = true
return optionsFunction
},
}