"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.h2LineHeight = exports.h2FontSize = exports.H2 = void 0;
var _react = require("react");
var _context = require("../../context");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
const h2FontSize = exports.h2FontSize = 26;
const h2LineHeight = exports.h2LineHeight = 34;

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