"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.buttonTextLineHeight = exports.buttonTextFontSize = exports.ButtonText = void 0;
var _react = require("react");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
const buttonTextFontSize = exports.buttonTextFontSize = 16;
const buttonTextLineHeight = exports.buttonTextLineHeight = 20;

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

/**
 * `ButtonText` typographic style
 */
const ButtonText = exports.ButtonText = /*#__PURE__*/(0, _react.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__*/(0, _jsxRuntime.jsx)(_IOText.IOText, {
    ref: ref,
    ...ButtonTextProps,
    children: props.children
  });
});
//# sourceMappingURL=ButtonText.js.map