import{r,a as c,j as m}from"./vendor-react-BUCujlKS.js";import{a as u}from"./vendor-radix-ui-react-primitive-DhVoX9SD.js";import{u as l}from"./vendor-radix-ui-react-use-layout-effect-D_3IhJdJ.js";var p="Portal",f=r.forwardRef((o,a)=>{const{container:e,...s}=o,[n,i]=r.useState(!1);l(()=>i(!0),[]);const t=e||n&&globalThis?.document?.body;return t?c.createPortal(m.jsx(u.div,{...s,ref:a}),t):null});f.displayName=p;export{f as P};
