decord/source/4132_usePortalState.js
2026-08-05 07:35:12 +00:00

20 lines
542 B
JavaScript

// Module ID: 4132
// Function ID: 4133
// Name: usePortalState
// Dependencies: [19, 4129]
// Exports: usePortalState
// Module 4132 (usePortalState)
import { useContext } from "noop";
export const usePortalState = (arg0) => {
const tmp = useContext(require(4129) /* createContext */.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] || [];
}
};