11 lines
386 B
JavaScript
11 lines
386 B
JavaScript
// Metro module 4066 (f4067).
|
|
import { useContext } from "react";
|
|
import * as _Module4063 from "./Module4063";
|
|
export const usePortalState = (a0) => {
|
|
const context = useContext(_Module4063.PortalStateContext);
|
|
if (context === null) {
|
|
throw new Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");
|
|
}
|
|
return context[a0] || [];
|
|
};
|