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 { SvgXml } from 'react-native-svg';
import { Typography } from '../../../core/components/Typography/Typography';
import { TouchableOpacity } from 'react-native';
import { useStyles } from './styles';
function MenuAction({
  label,
  danger,
  dark,
  iconProps,
  gap = 'medium',
  ...props
}) {
  const {
    theme,
    styles
  } = useStyles({
    gap,
    dark
  });
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
    hitSlop: 20,
    style: [styles.container, props.style]
  }, props), /*#__PURE__*/React.createElement(SvgXml, _extends({
    width: 24,
    height: 24,
    color: danger ? theme.colors.alert : dark ? theme.colors.white : theme.colors.base
  }, iconProps)), /*#__PURE__*/React.createElement(Typography.BodyBold, {
    style: danger ? styles.alert : styles.label
  }, label));
}
export default MenuAction;
//# sourceMappingURL=MenuAction.js.map