"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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

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

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

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

var _rebass = require("rebass");

var Heading = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
  var _ref$as = _ref.as,
      as = _ref$as === void 0 ? 'h1' : _ref$as,
      rest = (0, _objectWithoutProperties2["default"])(_ref, ["as"]);
  return /*#__PURE__*/_react["default"].createElement(_rebass.Heading, (0, _extends2["default"])({
    ref: ref,
    as: as
  }, rest));
});
Heading.displayName = 'Heading';
Heading.propTypes = {
  as: _propTypes["default"].string
};
var _default = Heading;
exports["default"] = _default;