"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.removeUndo = exports.REMOVE_UNDO = exports.addUndo = exports.ADD_UNDO = void 0;
var ADD_UNDO = 'ADD_UNDO';
exports.ADD_UNDO = ADD_UNDO;

var addUndo = function addUndo(_ref) {
  var title = _ref.title,
      undoCall = _ref.undoCall,
      params = _ref.params;
  return {
    type: ADD_UNDO,
    title: title,
    undoCall: undoCall,
    params: params
  };
};

exports.addUndo = addUndo;
var REMOVE_UNDO = 'REMOVE_UNDO';
exports.REMOVE_UNDO = REMOVE_UNDO;

var removeUndo = function removeUndo(_ref2) {
  var id = _ref2.id;
  return {
    type: REMOVE_UNDO,
    id: id
  };
};

exports.removeUndo = removeUndo;