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); }
import { Text } from 'react-native';
import { memo } from 'react';
import { ComponentID, PageID } from '../../enums/enumUIKitID';
import useConfig from '../../hooks/useConfig';
const TextElement = ({
  pageID = PageID.WildCardPage,
  componentID = ComponentID.WildCardComponent,
  elementID,
  text,
  ...props
}) => {
  const {
    excludes
  } = useConfig();
  const configId = `${pageID}/${componentID}/${elementID}`;
  if (excludes.includes(configId)) return null;
  return /*#__PURE__*/React.createElement(Text, _extends({
    testID: configId,
    accessibilityLabel: configId
  }, props), text);
};
export default /*#__PURE__*/memo(TextElement);
//# sourceMappingURL=TextElement.js.map