"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.confirmReducer = confirmReducer;
exports["default"] = void 0;
var _Actions = require("./Actions");
var initialState = null;
function confirmReducer() {
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
  var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  switch (action.type) {
    case _Actions.SHOW_CONFIRM:
      return action.data;
    case _Actions.HIDE_CONFIRM:
      return null;
    default:
      return state;
  }
}
var _default = exports["default"] = confirmReducer;