mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
13 lines
437 B
TypeScript
13 lines
437 B
TypeScript
import type { AlertDialogState, StateAttrMap } from '@videojs/core';
|
|
import { createContext } from '@videojs/element/context';
|
|
|
|
export interface AlertDialogContextValue {
|
|
state: AlertDialogState;
|
|
stateAttrMap: StateAttrMap<AlertDialogState>;
|
|
close: () => void;
|
|
}
|
|
|
|
const ALERT_DIALOG_CONTEXT_KEY = Symbol('@videojs/alert-dialog');
|
|
|
|
export const alertDialogContext = createContext<AlertDialogContextValue>(ALERT_DIALOG_CONTEXT_KEY);
|