@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
29 lines (28 loc) • 1.08 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { Checkbox, Text } from '@mantine/core';
import { memo } from 'react';
import classes from './DefaultFacetItem.module.css';
export const DefaultFacetItem = /*#__PURE__*/ memo(({ data, selected, countFormatter })=>/*#__PURE__*/ _jsx(Checkbox, {
checked: selected,
onChange: ()=>undefined,
"aria-hidden": true,
label: /*#__PURE__*/ _jsxs(_Fragment, {
children: [
data.label,
data.count !== undefined ? /*#__PURE__*/ _jsxs(Text, {
span: true,
c: "dimmed",
ml: "xs",
className: classes.count,
children: [
"(",
countFormatter?.(data.count) ?? data.count,
")"
]
}) : null
]
}),
tabIndex: -1,
className: classes.root
}));
//# sourceMappingURL=DefaultFacetItem.js.map