"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("react/jsx-runtime"),r=require("react"),d=require("react-dom");const a=r.forwardRef((o,u)=>{var e;const{container:i,...l}=o,[s,n]=r.useState(!1);r.useLayoutEffect(()=>n(!0),[]);const t=i||s&&((e=globalThis?.document)===null||e===void 0?void 0:e.body);return t?d.createPortal(c.jsx("div",{...l,ref:u}),t):null});a.displayName="Portal",exports.default=a;
//# sourceMappingURL=portal.js.map
