text: //import { combineReducers } from "redux";
  import { configureStore, getDefaultMiddleware } from "@reduxjs/toolkit";
  import logger from "redux-logger";
  import storage from "redux-persist/lib/storage";
  import {
    persistStore,
    persistReducer,
    FLUSH,
    REHYDRATE,
    PAUSE,
    PERSIST,
    PURGE,
    REGISTER,
  } from "redux-persist";
  
  import appReducer from "./app/app-reducer";
  import authReducer from "./auth/auth-reducers";
  
  //console.log(getDefaultMiddleware());
  
  const middleware = [
    ...getDefaultMiddleware({
      serializableCheck: {
        ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
      },
    }),
    logger,
  ];
  const authPersistConfig = {
    key: "auth",
    storage,
    whitelist: ["token"],
  };
  const store = configureStore({
    reducer: {
      app: appReducer,
      auth: persistReducer(authPersistConfig, authReducer),
    },
    middleware,
    devTools: process.env.NODE_ENV === "development",
  });
  
  const persistor = persistStore(store);
  export default { store, persistor };
  