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