import { createContext } from 'react'; import { SettableModalProps } from '@/hoc/asModal'; export interface ModalContextValues { dismiss: () => void; setPropOverrides: ( value: | ((current: Readonly>) => Partial) | Partial | null, ) => void; } const ModalContext = createContext({ dismiss: () => null, setPropOverrides: () => null, }); ModalContext.displayName = 'ModalContext'; export default ModalContext;