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