import{r as x,j as i,d as c}from"./index-3c1b2661.js";const l=e=>{const{dynamicHeight:s,id:o,value:r,rows:a}=e;return x.useLayoutEffect(()=>{if(s){const t=document.getElementById(o||"");if(t){t.style.height="0px";const n=t.scrollHeight;t.style.height=`${n+1}px`}}},[r]),i.jsx("div",{children:i.jsx(c.Textarea,{...e,rows:s?void 0:a})})};export{l as A};
