text: import { createStore, applyMiddleware, compose } from 'redux';
  import slimAsync from 'redux-slim-async';
  // import timerMiddleware from 'redux-timer';
  import { persistStore, persistReducer } from 'redux-persist';
  import storage from 'redux-persist/lib/storage';
  import rootReducer from '../reducers/index';
  
  const persistConfig = {
    key: 'root',
    storage,
  };
  
  // create the saga middleware
  const persistedReducer = persistReducer(persistConfig, rootReducer);
  
  // Main object which stores the entire state of the application
  export const store = createStore(
    // persistedReducer,
    rootReducer,
    compose(
      applyMiddleware(slimAsync),
      // applyMiddleware(timerMiddleware),
    ),
  );
  
  export const persistor = persistStore(store);
  