import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t,t as n}from"./jsx-runtime-CiQ1k8xo.js";import{t as r}from"./clsx-BcPLHiun.js";var i=e(t(),1),a=n(),o=r(`mx-auto w-full max-w-(--thread-content-max-width)`,`px-toolbar`);function s({header:e,banner:t,children:n,className:o,bodyClassName:s,containerRef:c,tabIndex:l=0,...u}){return(0,a.jsxs)(`div`,{ref:(0,i.useCallback)(e=>{if(typeof c==`function`){c(e);return}c!=null&&(c.current=e)},[c]),className:r(`relative flex h-full flex-col`,o),tabIndex:l,...u,children:[(0,a.jsx)(`div`,{className:`sticky top-0 z-10`,children:e}),(0,a.jsx)(`div`,{className:r(`flex min-h-0 flex-1 flex-col`,s),children:(0,a.jsxs)(`div`,{className:`relative mx-auto flex min-h-0 w-full flex-1 flex-col`,children:[t,(0,a.jsx)(`div`,{className:`min-h-0 flex-1`,children:n})]})})]})}export{s as n,o as t};
//# sourceMappingURL=thread-layout-B-dCjX0v.js.map