import"./vendor-react-CUXIiAnY.js";import{j as e,s as c,ak as a,b1 as i,W as l}from"./vendor-mui-core-BPQ6AEW_.js";const t=c(a)(({theme:r})=>({backgroundColor:r.palette.background.default,"& .header-row":{display:"flex",justifyContent:"space-between",alignItems:"center",gap:r.spacing(1)},"& .right":{display:"flex",alignItems:"center",gap:r.spacing(1.5)},"& .tabs":{marginTop:r.spacing(2),"& .MuiButton-root":{border:"none",color:"#999","&.active":{color:"#222"}}},"@media (max-width: 900px)":{"& .header-row":{flexDirection:"column",alignItems:"flex-start"},"& .right":{flexDirection:"column",width:"100%",".search-always-open, .toolbar-btn-show, a, button, .MuiButtonGroup-root":{width:"100% !important"}}}}));function d({left:r=null,tabs:n=null,actions:s=null,...o}){return!r&&!n?e.jsx(t,{elevation:0,...o,children:e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left"}),e.jsx(i,{direction:"row",className:"right",children:s})]})}):r&&!n||!r&&n?e.jsx(t,{elevation:0,...o,children:e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left",children:r||n}),e.jsx(i,{direction:"row",className:"right",children:s})]})}):e.jsxs(t,{elevation:0,...o,children:[e.jsxs(a,{className:"header-row",children:[e.jsx(a,{className:"left",children:r}),e.jsx(i,{direction:"row",className:"right",children:s})]}),n&&e.jsx(a,{sx:{mt:2},children:n})]})}d.propTypes={left:l.node,tabs:l.node,actions:l.node};export{d as L};
