import{D as p,r as m,j as B,z as x,bt as f,bu as y}from"./index-Cziemgsu.js";const E=({dependencies:n,children:c,tableId:a,belowIds:l=[],className:r})=>{const e=()=>{const t=document.getElementById(a);if(!t||t.children.length!==2)return;const s=t.children[1],i=s.getBoundingClientRect().top+1,g=l.reduce((b,d)=>b+f(d),0),h=y(t),o=Math.ceil(i+g+h),u=`height: calc(100vh - ${o}px); min-height: calc(100vh - ${o}px)`;s.setAttribute("style",u)};return p("resize",e),m.useEffect(e,[...n]),B.jsx("div",{className:x("scrollable-table",r),children:c})};export{E as S};
