var c=Object.defineProperty;var n=(e,r)=>c(e,"name",{value:r,configurable:!0});import{x as s,Z as i}from"../packem_chunks/bin.js";var f=Object.defineProperty,g=n((e,r)=>f(e,"name",{value:r,configurable:!0}),"i");const d=g((e,r)=>{const u=s.useRef(null),[a,o]=s.useState(e);return s.useLayoutEffect(()=>{if(!u.current)return;const{height:t}=i(u.current);t>0&&t!==a&&(o(t),r?.(t))}),{measuredHeight:a,ref:u}},"useMeasuredHeight");export{d as u};
