@conduction/components
Version:
React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)
5 lines (4 loc) • 388 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import * as styles from "./BadgeCounter.module.css";
import clsx from "clsx";
export const BadgeCounter = ({ number, children, layoutClassName, }) => (_jsxs("div", { className: styles.content, children: [children, _jsx("span", { className: clsx([layoutClassName && layoutClassName], styles.badge), children: number })] }));