text: import rootReducer from '../reducers'
  import thunk from 'redux-thunk'
  import {applyMiddleware, compose, createStore} from 'redux'
  
  export default function configureStore (initialState, debug = false) {
      let createStoreWithMiddleware
      const middleware = applyMiddleware(thunk)
  
      createStoreWithMiddleware = compose(middleware)
  
      const store = createStoreWithMiddleware(createStore) (
          rootReducer, initialState, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()        
      )
  
      return store
  }
  