import { deepMerge } from '@teamix/utils';
import useDialogAction from './dialog';
export function useErrorAction(action, context) {
  return useDialogAction(deepMerge({
    dialogQuickShowType: 'confirm',
    messageProps: {
      type: 'error'
    }
  }, action), context);
}
export default useErrorAction;