import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
import { Heading as RebassHeading } from 'rebass';
const Heading = /*#__PURE__*/forwardRef((_ref, ref) => {
  let {
    as = 'h1'
  } = _ref,
      rest = _objectWithoutProperties(_ref, ["as"]);

  return /*#__PURE__*/React.createElement(RebassHeading, _extends({
    ref: ref,
    as: as
  }, rest));
});
Heading.displayName = 'Heading';
Heading.propTypes = {
  as: PropTypes.string
};
export default Heading;