"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../context";
import { IOText } from "./IOText";
import { jsx as _jsx } from "react/jsx-runtime";
export const heroFontSize = 32;
export const heroLineHeight = 48;

/**
 * `Hero` typographic style
 */
export const Hero = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const theme = useIOTheme();
  const HeroProps = {
    ...props,
    weight: "Semibold",
    size: 32,
    lineHeight: 48,
    color: customColor ?? theme["textHeading-default"]
  };
  return /*#__PURE__*/_jsx(IOText, {
    ref: ref,
    ...HeroProps,
    children: props.children
  });
});
//# sourceMappingURL=Hero.js.map