"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../context";
import { IOText } from "./IOText";
import { jsx as _jsx } from "react/jsx-runtime";
export const h4FontSize = 20;
export const h4LineHeight = 24;

/**
 * `H4` typographic style
 */
export const H4 = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const theme = useIOTheme();
  const H4Props = {
    ...props,
    dynamicTypeRamp: "title3",
    // iOS only
    weight: "Semibold",
    size: h4FontSize,
    lineHeight: h4LineHeight,
    color: customColor ?? theme["textHeading-default"]
  };
  return /*#__PURE__*/_jsx(IOText, {
    ref: ref,
    ...H4Props,
    children: props.children
  });
});
//# sourceMappingURL=H4.js.map