"use strict";

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

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

var _head = require("../head");

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var PageTitle = function PageTitle(_ref) {
  var children = _ref.children,
      className = _ref.className,
      _ref$spacing = _ref.spacing,
      spacing = _ref$spacing === void 0 ? 'pv5' : _ref$spacing,
      grow = _ref.grow,
      shrink = _ref.shrink,
      basis = _ref.basis,
      dataQa = _ref['data-qa'],
      dataCy = _ref['data-cy'],
      id = _ref.id;
  return /*#__PURE__*/_react["default"].createElement(_head.Head1, _extends({
    className: className
  }, {
    spacing: spacing,
    grow: grow,
    shrink: shrink,
    basis: basis
  }, {
    "data-cy": dataCy,
    "data-qa": dataQa,
    id: id
  }), children);
};

exports.PageTitle = PageTitle;
PageTitle.displayName = 'PageTitle';