synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
23 lines (22 loc) • 528 B
JavaScript
import { jsxs as o, jsx as t } from "react/jsx-runtime";
import r from "../../IconSvg/IconSvg.js";
function s(e) {
const { isChecked: c, onClick: i, children: n } = e;
return /* @__PURE__ */ o("button", { className: `Chip ${c ? "Checked" : ""}`, onClick: i, children: [
n,
/* @__PURE__ */ t(
r,
{
icon: c ? "check" : "add",
sx: {
width: "14px",
paddingLeft: "0.2rem"
}
}
)
] });
}
export {
s as FacetChip
};
//# sourceMappingURL=FacetChip.js.map