"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.h4LineHeight = exports.h4FontSize = exports.H4 = void 0;
var _react = require("react");
var _context = require("../../context");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
const h4FontSize = exports.h4FontSize = 20;
const h4LineHeight = exports.h4LineHeight = 24;

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