UNPKG

@anoki/fse-marche-ui

Version:

FSE UI components library

42 lines (41 loc) 953 B
import { j as r } from "./index.es137.js"; import { clsx as t } from "./index.es139.js"; import './components/ui/filters/CategoryHeader/CategoryHeader.css';/* empty css */ import { ArrowDown as n } from "./index.es76.js"; const b = ({ className: s = "", title: i, isOpen: a, onToggle: e, selectedStructures: o, hasBorder: m = !0 }) => /* @__PURE__ */ r.jsxs( "button", { className: t( m && "ui-has-border-bottom", "ui-btn-accordion ", s ), type: "button", onClick: e, children: [ /* @__PURE__ */ r.jsxs("h3", { className: "fw-semibold fs-6 text-primary pb-x16", children: [ i, " ", o ? `(${o.length})` : "" ] }), /* @__PURE__ */ r.jsx( n, { color: "primary", className: t("ui-arrow", { "ui-expanded": a }) } ) ] } ); export { b as CategoryHeader }; //# sourceMappingURL=index.es51.js.map