Files
discord-decomp/_bundle/Module4066.js
T
2026-11-01 12:12:55 +02:00

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] || [];
};