"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.MTextInput = exports.MText = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactNative = require("react-native");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
const MText = props => {
  const {
    style,
    children,
    ...rest
  } = props;
  let fontFamily = 'SVN-Gilroy';
  if (style === undefined || (style === null || style === void 0 ? void 0 : style.fontWeight) === '400') {} else if ((style === null || style === void 0 ? void 0 : style.fontWeight) === '500') {
    fontFamily = 'SVN-GilroyMedium';
  } else if ((style === null || style === void 0 ? void 0 : style.fontWeight) === '600') {
    fontFamily = 'SVN-GilroySemiBold';
  } else if ((style === null || style === void 0 ? void 0 : style.fontWeight) === '700') {
    fontFamily = 'SVN-GilroyBold';
  }
  return /*#__PURE__*/_react.default.createElement(_reactNative.Text, _extends({}, props, {
    style: [style, {
      fontFamily: fontFamily
    }]
  }));
};
exports.MText = MText;
const MTextInput = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
  const {
    style,
    children,
    ...rest
  } = props;
  let fontFamily = 'SVN-Gilroy';
  if (style === undefined || (style === null || style === void 0 ? void 0 : style.fontWeight) === '400') {} else if ((style === null || style === void 0 ? void 0 : style.fontWeight) === '500') {
    fontFamily = 'SVN-GilroyMedium';
  } else if ((style === null || style === void 0 ? void 0 : style.fontWeight) === '600') {
    fontFamily = 'SVN-GilroySemiBold';
  } else if ((style === null || style === void 0 ? void 0 : style.fontWeight) === '700') {
    fontFamily = 'SVN-GilroyBold';
  }
  return /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, _extends({}, props, {
    ref: ref,
    style: [{
      fontFamily: fontFamily
    }, style]
  }));
});
exports.MTextInput = MTextInput;
//# sourceMappingURL=index.js.map