"use strict";

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