import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import PropTypes from 'prop-types';
import * as React from 'react';
import styled from 'styled-components';
import { fontSize, theme } from '../../Tools/interpolation';
var Wrapper =
/*#__PURE__*/
styled.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"], theme('cartridgeColor'), theme('cartridgeBackgroundColor'), theme('fontPrimary'), fontSize('xs'));

var Cartridge = function Cartridge(_ref) {
  var children = _ref.children,
      rest = _objectWithoutProperties(_ref, ["children"]);

  return React.createElement(Wrapper, rest, children);
};

Cartridge.propTypes = process.env.NODE_ENV !== "production" ? {
  children: PropTypes.node.isRequired
} : {};
export default Cartridge;