import{r as o,D as f,j as c,z as x,bs as v,bt as B}from"./index-DRe7Uehz.js";const j=({dependencies:i,children:r,belowIds:l=["status-bar"],className:u})=>{const e=o.useRef(null),s=()=>{var a;const t=(a=e.current)==null?void 0:a.children[0];if(!t)return;const d=t.getBoundingClientRect().top+1,h=l.reduce((b,m)=>b+v(m),0),p=B(t),n=Math.ceil(d+h+p),g=`height: calc(100vh - ${n}px); min-height: calc(100vh - ${n}px)`;t.setAttribute("style",g)};return f("resize",s),o.useEffect(s,[...i,e]),c.jsx("div",{ref:e,className:x("scrollable-container",u),children:c.jsx("div",{id:"content-details",className:"content-details",children:r})})};export{j as S};
