'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _themeGet = require('../../extensions/themeGet');

var _themeGet2 = _interopRequireDefault(_themeGet);

var _CodeBlock = require('./CodeBlock');

var _CodeBlock2 = _interopRequireDefault(_CodeBlock);

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

var Code = _styledComponents2.default.pre.withConfig({ displayName: 'Code' }).withConfig({
  displayName: 'Code'
})(['font-family:', ';font-size:0.85em;background:', ';color:', ';border-color:', ';border-width:', ';border-style:solid;border-radius:3px;padding:0.3em;margin:0;display:inline-block;'], (0, _themeGet2.default)('fonts.monospace'), (0, _themeGet2.default)('colors.gray.light'), (0, _themeGet2.default)('colors.text.default'), (0, _themeGet2.default)('colors.border.medium'), (0, _themeGet2.default)('thicknesses.normal'));

Code.propTypes = {
  /**
   * A class name to pass to the element.
   */
  className: _propTypes2.default.string,
  /**
   * An id to pass to the element.
   */
  id: _propTypes2.default.string
};

Code.defaultProps = {
  className: null,
  id: null
};

Code.Block = _CodeBlock2.default;

/**
 * @component
 */
exports.default = Code;