"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../context";
import { bodyFontSize, bodyLineHeight } from "./Body";
import { IOText } from "./IOText";

/**
 * `BodyMonospace` typographic style
 */
import { jsx as _jsx } from "react/jsx-runtime";
export const BodyMonospace = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const theme = useIOTheme();
  const BodyProps = {
    ...props,
    dynamicTypeRamp: "body",
    // iOS only
    font: "FiraCode",
    weight: "Medium",
    size: bodyFontSize,
    lineHeight: bodyLineHeight,
    color: customColor ?? theme["textBody-tertiary"],
    textStyle: {
      letterSpacing: 0.5
    }
  };
  return /*#__PURE__*/_jsx(IOText, {
    ref: ref,
    ...BodyProps,
    children: props.children
  });
});
//# sourceMappingURL=BodyMonospace.js.map