import{r as t}from"./vendor-react-wBh_31cN.js";const h=()=>{const e=t.useRef(null),[{width:n,height:c},i]=t.useState({width:0,height:0});return t.useEffect(()=>{const r=new ResizeObserver(([s])=>{i({width:s.contentRect.width,height:s.contentRect.height})});return e.current&&r.observe(e.current),()=>r.disconnect()},[]),[e,n,c]};export{h as u};
