"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNativeSvg = require("react-native-svg");
var _Typography = require("../../../core/components/Typography/Typography");
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 MenuAction({
  label,
  danger,
  dark,
  iconProps,
  gap = 'medium',
  ...props
}) {
  const {
    theme,
    styles
  } = (0, _styles.useStyles)({
    gap,
    dark
  });
  return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, _extends({
    hitSlop: 20,
    style: [styles.container, props.style]
  }, props), /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, _extends({
    width: 24,
    height: 24,
    color: danger ? theme.colors.alert : dark ? theme.colors.white : theme.colors.base
  }, iconProps)), /*#__PURE__*/React.createElement(_Typography.Typography.BodyBold, {
    style: danger ? styles.alert : styles.label
  }, label));
}
var _default = exports.default = MenuAction;
//# sourceMappingURL=MenuAction.js.map