"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TagChip = void 0;
var _react = _interopRequireDefault(require("react"));
var _ = require("../..");
var _TagChip = require("./TagChip.styled");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var TagChip = exports.TagChip = function TagChip(_ref) {
  var label = _ref.label,
    _ref$icon = _ref.icon,
    icon = _ref$icon === void 0 ? null : _ref$icon;
  if (icon) {
    return _react.default.createElement(_TagChip.ContainerLabel, null, _react.default.createElement(_.Flexbox, {
      container: true,
      direction: "row",
      gap: 1,
      alignItems: "center"
    }, icon && _react.default.createElement(_TagChip.StyledFlexbox, {
      item: true
    }, icon), label && _react.default.createElement(_.Typography, {
      color: "inherit",
      type: "secondary",
      weight: "bold",
      lineHeight: "inherit"
    }, label)));
  }
  return _react.default.createElement(_TagChip.ContainerLabel, null, _react.default.createElement(_.Flexbox, {
    container: true,
    alignItems: "center"
  }, _react.default.createElement(_TagChip.StyledTypography, {
    color: "inherit",
    type: "secondary",
    weight: "bold"
  }, label)));
};