"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.lastActionMiddleware = exports.getLastAction = void 0;
var lastAction = null;

var getLastAction = function getLastAction() {
  return lastAction;
};

exports.getLastAction = getLastAction;

var lastActionMiddleware = function lastActionMiddleware() {
  return function (next) {
    return function (action) {
      lastAction = action;
      return next(action);
    };
  };
};

exports.lastActionMiddleware = lastActionMiddleware;
//# sourceMappingURL=middleware.js.map