// @bun
var E=Object.defineProperty;var G=(r)=>r;function I(r,y){this[r]=G.bind(null,y)}var Q=(r,y)=>{for(var F in y)E(r,F,{get:y[F],enumerable:!0,configurable:!0,set:I.bind(y,F)})};var R=(r,y)=>()=>(r&&(y=r(r=0)),y);import{StatusChip as J}from"@contractspec/lib.design-system";import{HStack as K}from"@contractspec/lib.ui-kit-web/ui/stack";import{cn as H}from"@contractspec/lib.ui-kit-web/ui/utils";import{Boxes as L,ChevronDown as M}from"lucide-react";import{jsx as f,jsxs as P}from"react/jsx-runtime";function O({title:r,count:y,icon:F,isCollapsed:q=!1,onToggle:z,className:A}){return P("button",{type:"button",onClick:z,className:H("flex w-full items-center justify-between rounded-lg px-4 py-3","bg-muted/30 transition-colors hover:bg-muted/50","group cursor-pointer",A),children:[P(K,{gap:"sm",className:"items-center",children:[f("div",{className:"text-muted-foreground transition-colors group-hover:text-foreground",children:F||f(L,{className:"h-5 w-5"})}),f("span",{className:"font-semibold text-lg capitalize transition-colors group-hover:text-primary",children:r}),f(J,{tone:"neutral",label:`${y} ${y===1?"feature":"features"}`,size:"sm"})]}),f(M,{className:H("h-5 w-5 text-muted-foreground transition-transform duration-200",q&&"-rotate-90")})]})}export{O as FeatureCategoryHeader};
