import{r as c,j as e}from"./vendor-react-DrAK5R0M.js";import{a4 as d,u as p}from"./vendor-icons-Cu2Ube6F.js";function f({title:o,children:r,count:s,defaultOpen:a=!0,className:n="",contentClassName:m="space-y-3"}){const[t,x]=c.useState(a);return e.jsxs("section",{className:`p-4 mx-4 mt-2 ${n}`,children:[e.jsxs("button",{type:"button",onClick:()=>x(l=>!l),className:"mb-2 flex w-full items-center gap-1.5 text-left","aria-expanded":t,children:[e.jsxs("h3",{className:"flex-1 text-xs font-display font-bold text-muted-foreground uppercase tracking-wide",children:[o,typeof s=="number"&&e.jsxs("span",{className:"ml-1.5 font-mono font-normal text-muted-foreground/50",children:["(",s,")"]})]}),t?e.jsx(d,{className:"h-3.5 w-3.5 text-muted-foreground"}):e.jsx(p,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),t&&e.jsx("div",{className:m,children:r})]})}export{f as D};
