"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
exports.usePopConfirmAction = usePopConfirmAction;

var _utils = require("@teamix/utils");

var _dialog = _interopRequireDefault(require("./dialog"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function usePopConfirmAction(action, context) {
  return (0, _dialog.default)((0, _utils.deepMerge)({
    dialogType: 'pop',
    align: 'br'
  }, action), context);
}

var _default = usePopConfirmAction;
exports.default = _default;