import React from 'react'; import { IconPosition } from './DialogIcon'; type Callback = ((value: T) => void) | React.Dispatch>; interface DialogContextType { setIcon: Callback; setFooter: Callback; setIconPosition: Callback; } const DialogContext = React.createContext({ setIcon: () => null, setFooter: () => null, setIconPosition: () => null, }); export default DialogContext;