"use strict";

import { forwardRef } from "react";
import { IOText } from "./IOText";
import { jsx as _jsx } from "react/jsx-runtime";
export const buttonTextFontSize = 16;
export const buttonTextLineHeight = 20;

/* Needed to render `ButtonOutline` and`ButtonLink` because they use
`AnimatedText` for color transition through Reanimated */
const defaultColor = "white";

/**
 * `ButtonText` typographic style
 */
export const ButtonText = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const ButtonTextProps = {
    ...props,
    weight: "Semibold",
    size: buttonTextFontSize,
    lineHeight: buttonTextLineHeight,
    /* Needed to render `ButtonOutline` and`ButtonLink` because they use
    `AnimatedText` for color transition through Reanimated */
    color: customColor ?? defaultColor
  };
  return /*#__PURE__*/_jsx(IOText, {
    ref: ref,
    ...ButtonTextProps,
    children: props.children
  });
});
//# sourceMappingURL=ButtonText.js.map