import React from 'react'; import type { MessageInstance } from '../message/interface'; import type { NotificationInstance } from '../notification/interface'; import type { ModalStaticFunctions } from '../modal/confirm'; type ModalType = Omit; export interface useAppProps { message: MessageInstance; notification: NotificationInstance; modal: ModalType; } const AppContext = React.createContext({ message: {} as MessageInstance, notification: {} as NotificationInstance, modal: {} as ModalType, }); export default AppContext;