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 { Image } from 'react-native';
import { memo } from 'react';
import { ElementID } from '../../enums/enumUIKitID';
import useConfig from '../../hooks/useConfig';
import { useConfigImageUri } from '../../hooks';
const MenuButtonIconElement = ({
  pageID = '*',
  componentID = '*',
  ...props
}) => {
  const {
    excludes
  } = useConfig();
  const elementID = ElementID.menu_button;
  const configKey = 'image';
  const configId = `${pageID}/${componentID}/${elementID}`;
  const imageSource = useConfigImageUri({
    configPath: {
      page: pageID,
      component: componentID,
      element: elementID
    },
    configKey: configKey
  });
  if (excludes.includes(configId)) return null;
  return /*#__PURE__*/React.createElement(Image, _extends({
    testID: configId,
    accessibilityLabel: configId,
    source: props.source ?? imageSource
  }, props));
};
export default /*#__PURE__*/memo(MenuButtonIconElement);
//# sourceMappingURL=MenuButtonIconElement.js.map