"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Chip = void 0;

var _react = _interopRequireDefault(require("react"));

var _clsx = _interopRequireDefault(require("clsx"));

var _jsxRuntime = require("react/jsx-runtime");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var getBackgroundColorClass = function getBackgroundColorClass(color) {
  switch (color) {
    case "red":
      return "bg-light-red";

    case "orange":
      return "bg-light-orange";

    case "green":
      return "bg-light-green";

    case "gray":
      return "bg-light-gray";

    default:
      return "bg-light-green";
  }
};

var Chip = function Chip(_ref) {
  var text = _ref.text,
      color = _ref.color;
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: (0, _clsx.default)("text-center align-baseline min-w-8 min-h-8 text-2xs font-inter rounded-4px font-bold break-all", getBackgroundColorClass(color)),
    children: text
  });
};

exports.Chip = Chip;
Chip.propTypes = {};