"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var React = _interopRequireWildcard(require("react"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _interpolation = require("../../Tools/interpolation");

//  strict
var Wrapper =
/*#__PURE__*/
_styledComponents.default.span.withConfig({
  componentId: "sc-1rs1xpb-0"
})(["\n  display: inline-flex;\n  flex-direction: row;\n  justify-content: center;\n  align-items: center;\n  color: ", ";\n  background-color: ", ";\n  font-family: ", ";\n  font-size: ", ";\n  font-weight: 700;\n  word-wrap: normal;\n  text-transform: uppercase;\n  padding: 0.25rem;\n  margin-left: 0.75rem;\n  border-radius: 2px;\n"], (0, _interpolation.theme)('cartridgeColor'), (0, _interpolation.theme)('cartridgeBackgroundColor'), (0, _interpolation.theme)('fontPrimary'), (0, _interpolation.fontSize)('xs'));

var Cartridge = function Cartridge(_ref) {
  var children = _ref.children,
      rest = (0, _objectWithoutProperties2.default)(_ref, ["children"]);
  return React.createElement(Wrapper, rest, children);
};

Cartridge.propTypes = process.env.NODE_ENV !== "production" ? {
  children: _propTypes.default.node.isRequired
} : {};
var _default = Cartridge;
exports.default = _default;