"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 CloseButtonIconElement = ({
  pageID = _enumUIKitID.PageID.WildCardPage,
  componentID = _enumUIKitID.ComponentID.WildCardComponent,
  ...props
}) => {
  const elementID = _enumUIKitID.ElementID.close_button;
  const configKey = 'image';
  const {
    accessibilityId,
    isExcluded
  } = (0, _hooks.useAmityElement)({
    pageId: pageID,
    componentId: componentID,
    elementId: elementID
  });
  const imageSource = (0, _hooks.useConfigImageUri)({
    configPath: {
      page: pageID,
      component: componentID,
      element: elementID
    },
    configKey: configKey
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_reactNative.Image, _extends({
    testID: accessibilityId,
    accessibilityLabel: accessibilityId,
    source: props.source ?? imageSource
  }, props));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(CloseButtonIconElement);
//# sourceMappingURL=CloseButtonIconElement.js.map