"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../../context";
import { IOText } from "../IOText";

/**
 * `MdH2` typographic style
 */
import { jsx as _jsx } from "react/jsx-runtime";
export const MdH2 = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const theme = useIOTheme();
  const MdH2Props = {
    ...props,
    weight: "Semibold",
    size: 18,
    lineHeight: 24,
    color: customColor ?? theme["textHeading-default"]
  };
  return /*#__PURE__*/_jsx(IOText, {
    ref: ref,
    ...MdH2Props,
    children: props.children
  });
});
//# sourceMappingURL=MdH2.js.map