import { createContext } from 'react' ; import type { DialogInternal } from './CommonDialogService' ; export interface IDialogContext { visible : boolean ; dialog : DialogInternal < any > ; reject : ( ) => void ; } export const DialogContext = createContext < IDialogContext > ( undefined as any ) ;