amis-rpc-design/node_modules/antd/es/config-provider/hooks/useConfig.js

12 lines
341 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import { useContext } from 'react';
import DisabledContext from '../DisabledContext';
import SizeContext from '../SizeContext';
function useConfig() {
const componentDisabled = useContext(DisabledContext);
const componentSize = useContext(SizeContext);
return {
componentDisabled,
componentSize
};
}
export default useConfig;