text: import { createStore, applyMiddleware, compose } from 'redux'
  import rootReducer from '../reducers'
  import thunk from 'redux-thunk'
  import { persistStore, persistReducer } from 'redux-persist'
  import storage from 'redux-persist/lib/storage' // defaults to localStorage for web
  import { jwtMiddleware } from '../middleware/auth';
  
  const persistConfig = {
    key: 'root',
    storage,
  }
  
  
  const persistedReducer = persistReducer(persistConfig, rootReducer)
  
  const storeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
  
  export let store = createStore(persistedReducer, storeEnhancers(applyMiddleware(jwtMiddleware, thunk)))
  export let persistor = persistStore(store)
  