"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"));
var _hooks = require("../../hooks");
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 LikeButtonIconElement = ({
  pageID = '*',
  componentID = '*',
  ...props
}) => {
  const {
    excludes
  } = (0, _useConfig.default)();
  const elementID = _enumUIKitID.ElementID.reaction_button;
  const configKey = 'icon';
  const configId = `${pageID}/${componentID}/${elementID}`;
  const imageSource = (0, _hooks.useConfigImageUri)({
    configPath: {
      page: pageID,
      component: componentID,
      element: elementID
    },
    configKey: configKey
  });
  if (excludes.includes(configId)) return null;
  return /*#__PURE__*/React.createElement(_reactNative.Image, _extends({
    testID: configId,
    accessibilityLabel: configId,
    source: props.source ?? imageSource
  }, props));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(LikeButtonIconElement);
//# sourceMappingURL=LikeButtonIconElement.js.map