"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _react = require("react");
var _enumUIKitID = require("../../enums/enumUIKitID");
var _useConfig = _interopRequireDefault(require("../../hooks/useConfig"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const TextElement = ({
  pageID = _enumUIKitID.PageID.WildCardPage,
  componentID = _enumUIKitID.ComponentID.WildCardComponent,
  elementID,
  text,
  ...props
}) => {
  const {
    excludes
  } = (0, _useConfig.default)();
  const configId = `${pageID}/${componentID}/${elementID}`;
  if (excludes.includes(configId)) return null;
  return /*#__PURE__*/React.createElement(_reactNative.Text, _extends({
    testID: configId,
    accessibilityLabel: configId
  }, props), text);
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(TextElement);
//# sourceMappingURL=TextElement.js.map