@anoki/fse-ui
Version:
FSE UI components library
43 lines (42 loc) • 1.06 kB
JavaScript
import { j as r } from "./index.es237.js";
import { clsx as o } from "./index.es239.js";
import './components/ui/filters/CategoryHeader/CategoryHeader.css';/* empty css */
import { ArrowDown as n } from "./index.es165.js";
const b = ({
className: t = "",
title: i,
isOpen: e,
onToggle: a,
selectedStructures: s,
titleClassName: m = "fw-semibold fs-6 text-primary pb-x16 px-x24",
hasBorder: x = !0
}) => /* @__PURE__ */ r.jsxs(
"button",
{
className: o(
x && "ui-has-border-bottom",
"ui-btn-accordion-filter",
t
),
type: "button",
onClick: a,
children: [
/* @__PURE__ */ r.jsxs("h1", { className: o(m), children: [
i,
" ",
s ? `(${s.length})` : ""
] }),
/* @__PURE__ */ r.jsx("div", { className: "px-x24", children: /* @__PURE__ */ r.jsx(
n,
{
color: "primary",
className: o("ui-arrow ", { "ui-expanded": e })
}
) })
]
}
);
export {
b as CategoryHeader
};
//# sourceMappingURL=index.es89.js.map