import * as React from 'react'; import { basePickerConfig, mergeConfig, PickerConfig, PickerConfigInternal } from '../../config/config'; type Props = PickerConfig & Readonly<{ children: React.ReactNode; }>; const ConfigContext = React.createContext( basePickerConfig() ); export function PickerConfigProvider({ children, ...config }: Props) { return ( {children} ); } export function usePickerConfig() { return React.useContext(ConfigContext); }