"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
exports.useConfirmAction = useConfirmAction;
var _utils = require("@teamix/utils");
var _dialog = _interopRequireDefault(require("./dialog"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function useConfirmAction(action, context) {
  return (0, _dialog.default)((0, _utils.deepMerge)({
    dialogQuickShowType: 'confirm',
    messageProps: {
      type: 'warning'
    }
  }, action), context);
}
var _default = useConfirmAction;
exports.default = _default;