mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(packages): dry up core, html, and react UI architecture (#699)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { ControlsState, StateAttrMap } from '@videojs/core';
|
||||
import { createContext } from '@videojs/element/context';
|
||||
|
||||
export interface ControlsContextValue {
|
||||
state: ControlsState;
|
||||
stateAttrMap: StateAttrMap<ControlsState>;
|
||||
}
|
||||
|
||||
const CONTROLS_CONTEXT_KEY = Symbol('@videojs/controls');
|
||||
|
||||
export const controlsContext = createContext<ControlsContextValue>(CONTROLS_CONTEXT_KEY);
|
||||
Reference in New Issue
Block a user