"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
var _exportNames = {};
exports.default = void 0;
var _redux = require("redux");
var _authSlice = _interopRequireWildcard(require("./authSlice"));
Object.keys(_authSlice).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _authSlice[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function () {
      return _authSlice[key];
    }
  });
});
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
let appReducer = (0, _redux.combineReducers)({
  Auth: _authSlice.default
});

// export all action

const rootReducer = (state, action) => {
  if ((action === null || action === void 0 ? void 0 : action.type) === 'drawer/logoutUserSuccess') {
    state = {
      Auth: {
        user: {
          data: undefined,
          isLoading: false,
          errors: ''
        }
      }
    };
  }
  return appReducer(state, action);
};
var _default = exports.default = rootReducer;
//# sourceMappingURL=index.js.map