"use strict";

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

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

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

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

function useNoticeAction(action, context) {
  return (0, _dialog.default)((0, _utils.deepMerge)({
    dialogQuickShowType: 'confirm',
    messageProps: {
      type: 'notice'
    }
  }, action), context);
}

var _default = useNoticeAction;
exports.default = _default;