33 lines
884 B
JavaScript
33 lines
884 B
JavaScript
// Module ID: 4253
|
|
// Function ID: 4254
|
|
// Name: PortalHost
|
|
// Dependencies: [19, 21, 4254, 4250]
|
|
|
|
// Module 4253 (PortalHost)
|
|
import noopDefault from "noop" /* 19 */;
|
|
import noop from "noop" /* 19 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
|
|
const useEffect = noop.useEffect;
|
|
noopDefault;
|
|
({ Fragment: c3, jsx: c4 } = jsxProd);
|
|
const memoResult = noop.memo((name) => {
|
|
name = name.name;
|
|
let _require;
|
|
dependencyMap = undefined;
|
|
let obj = _require(4254);
|
|
const portalState = obj.usePortalState(name);
|
|
const portal = _require(4250).usePortal(name);
|
|
({ registerHost: c0, deregisterHost: c1 } = portal);
|
|
useEffect(() => {
|
|
_undefined();
|
|
return () => {
|
|
callback();
|
|
};
|
|
}, []);
|
|
obj = { children: portalState.map((node) => node.node) };
|
|
return callback(closure_3, obj);
|
|
});
|
|
memoResult.displayName = "PortalHost";
|
|
|
|
export const PortalHost = memoResult;
|