decord/source/__polyfill/01xxx/module_1861.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

22 lines
535 B
JavaScript

// Module ID: 1861
// Function ID: 1862
// Dependencies: [19]
// Exports: useToolbarContext
// Module 1861
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;
}
};