Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/element-plus-solidjs. element-plus-solidjs.vercel.app
Something went wrong. Try again.
1234567891011121314import { createMemo } from 'solid-js'import { createNamespace } from '../utils'import { useGlobalConfig } from './use-global-config'
export const defaultNamespace = 'el'
export const useNamespace = (block: string) => { const globalConfig = useGlobalConfig() const namespace = createMemo( () => globalConfig?.().namespace || defaultNamespace ) return createMemo(() => createNamespace(namespace(), block))}