import type { AlertDialogState, StateAttrMap } from '@videojs/core'; import { createContext } from '@videojs/element/context'; export interface AlertDialogContextValue { state: AlertDialogState; stateAttrMap: StateAttrMap; close: () => void; } const ALERT_DIALOG_CONTEXT_KEY = Symbol('@videojs/alert-dialog'); export const alertDialogContext = createContext(ALERT_DIALOG_CONTEXT_KEY);