decord/source/__polyfill/01xxx/module_1862.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

22 lines
535 B
JavaScript

// Module ID: 1862
// Function ID: 1863
// Dependencies: [19]
// Exports: useToolbarContext
// Module 1862
import noop from "module_19" /* 19 */;
const useContext = noop.useContext;
const context = noop.createContext(undefined);
export const ToolbarContext = context;
export const useToolbarContext = () => {
const tmp = useContext(context);
if (tmp) {
return tmp;
} else {
const _Error = Error;
const error = new Error("KeyboardToolbar.* component must be used inside <KeyboardToolbar>");
throw error;
}
};