decord/source/__polyfill/04xxx/module_4452.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

21 lines
567 B
JavaScript

// Module ID: 4452
// Function ID: 4453
// Dependencies: [19, 4449]
// Exports: usePortalState
// Module 4452
import _mod19 from "module_19" /* 19 */;
import _mod4449 from "module_4449" /* 4449 */;
const useContext = _mod19.useContext;
export const usePortalState = (arg0) => {
const tmp = useContext(_mod4449.PortalStateContext);
if (null === tmp) {
const _Error = Error;
const error = new Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");
throw error;
} else {
return tmp[arg0] || [];
}
};