import "core-js/modules/es.array.concat.js";
import './index.css';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export var FcrBadge = function FcrBadge(props) {
  var count = props.count,
    children = props.children,
    _props$maxShowCount = props.maxShowCount,
    maxShowCount = _props$maxShowCount === void 0 ? 99 : _props$maxShowCount,
    _props$unit = props.unit,
    unit = _props$unit === void 0 ? '+' : _props$unit,
    _props$minShowCount = props.minShowCount,
    minShowCount = _props$minShowCount === void 0 ? 0 : _props$minShowCount;
  return /*#__PURE__*/_jsxs("div", {
    className: "fcr-badge",
    children: [count > minShowCount && /*#__PURE__*/_jsx("span", {
      className: "fcr-badge-value",
      children: count <= 0 ? 0 : count > maxShowCount ? "".concat(maxShowCount).concat(unit) : count
    }), children]
  });
};