"use strict";

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

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