feat: add config

This commit is contained in:
2023-03-26 15:49:59 +08:00
parent 59e8b4d56e
commit 2b2ef3a3fb
6 changed files with 185 additions and 15 deletions

View File

@ -0,0 +1,9 @@
import { useProviderConfigState } from '../context'
export const useConfig = () => {
const { componentDisabled, componentSize } = useProviderConfigState()
return {
componentDisabled,
componentSize
}
}