Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
21 lines
567 B
JavaScript
21 lines
567 B
JavaScript
// Module ID: 4517
|
|
// Function ID: 4518
|
|
// Dependencies: [19, 4514]
|
|
// Exports: usePortalState
|
|
|
|
// Module 4517
|
|
import _mod19 from "module_19" /* 19 */;
|
|
import _mod4514 from "module_4514" /* 4514 */;
|
|
|
|
const useContext = _mod19.useContext;
|
|
|
|
export const usePortalState = (arg0) => {
|
|
const tmp = useContext(_mod4514.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] || [];
|
|
}
|
|
};
|