UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

23 lines (22 loc) 528 B
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