"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 _hooks = require("../../hooks");
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 TextKeyElement = ({
  pageID = _enumUIKitID.PageID.WildCardPage,
  componentID = _enumUIKitID.ComponentID.WildCardComponent,
  elementID,
  ...props
}) => {
  const {
    isExcluded,
    accessibilityId
  } = (0, _hooks.useAmityElement)({
    pageId: pageID,
    componentId: componentID,
    elementId: elementID
  });
  const [configText] = (0, _hooks.useUiKitConfig)({
    page: pageID,
    component: componentID,
    element: elementID,
    keys: ['text']
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_reactNative.Text, _extends({
    testID: accessibilityId,
    accessibilityLabel: accessibilityId
  }, props), configText);
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(TextKeyElement);
//# sourceMappingURL=TextKeyElement.js.map