import{j as e,c as a}from"./index-CUDottTv.js";import{S as o}from"./textarea-DAwdLdON.js";function j({title:s,tabs:r,activeTab:c,onTabChange:i,showSearch:l=!1,searchValue:n,onSearchChange:x,children:d}){const m=r&&r.length>0;return s||m||l||d?e.jsxs("div",{className:"border-b border-border-default shrink-0",children:[e.jsxs("div",{className:"flex items-center justify-between px-5 py-2 gap-4 min-h-[44px]",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[s&&e.jsx("h2",{className:"text-[14px] font-semibold text-text-primary",children:s}),m&&e.jsx("div",{className:"flex items-center gap-1",children:r.map(t=>e.jsx("button",{onClick:()=>i==null?void 0:i(t.id),className:a("h-7 px-2.5 rounded-md text-[12px] font-medium transition-colors cursor-pointer",c===t.id?"bg-bg-elevated text-text-primary":"text-text-tertiary hover:text-text-secondary hover:bg-bg-hover"),children:t.label},t.id))})]}),e.jsx("div",{className:"flex items-center gap-3",children:d})]}),l&&e.jsx("div",{className:"px-5 pb-2.5",children:e.jsx(o,{value:n,onChange:t=>x==null?void 0:x(t.target.value)})})]}):null}export{j as T};
