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 { menu, verticalMenu } from '../../../core/assets/icons';
import { useAmityElement } from '../../hooks';
import { SvgXml } from 'react-native-svg';
import { ComponentID, ElementID, PageID } from '../../enums';
import { TouchableOpacity } from 'react-native';
import { useStyles } from './styles';
function MenuButton({
  iconProps,
  variant = 'default',
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.menu_button,
  ...props
}) {
  const {
    isExcluded,
    accessibilityId
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const {
    theme,
    styles
  } = useStyles();
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({}, props, {
    hitSlop: 16,
    testID: accessibilityId,
    style: [variant === 'filled' && styles.filledContainer, props.style]
  }), /*#__PURE__*/React.createElement(SvgXml, _extends({
    width: "24",
    height: "24",
    xml: variant === 'vertical' ? verticalMenu() : menu(),
    color: variant === 'filled' || variant === 'vertical' ? theme.colors.white : theme.colors.base
  }, iconProps)));
}
export default MenuButton;
//# sourceMappingURL=MenuButton.js.map