"use strict";

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

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

exports.__esModule = true;
exports.CheckoutTitle = void 0;

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

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

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

var _Common = require("../../../../Common");

var _templateObject, _templateObject2;

var CheckoutTitle = function CheckoutTitle(_ref) {
  var data = _ref.data,
      small = _ref.small,
      className = _ref.className;
  var defaultClassName = small ? 'mt-2 mb-3' : 'mt-4 pt-2 mb-4';
  return /*#__PURE__*/_react["default"].createElement(Title, {
    className: className || defaultClassName,
    small: small
  }, data);
};

exports.CheckoutTitle = CheckoutTitle;
var Title = (0, _styledComponents["default"])(_Common.Typography).attrs(function (props) {
  return {
    as: props.small ? 'h4' : 'h3',
    variant: 3
  };
})(_templateObject || (_templateObject = (0, _taggedTemplateLiteralLoose2["default"])(["\n  font-weight: bold;\n  line-height: 1;\n  text-transform: uppercase;\n\n  ", "\n"])), function (props) {
  return props.small && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2["default"])(["\n      font-size: 1.8rem;\n    "])));
});
//# sourceMappingURL=index.js.map