text: import { createStore, applyMiddleware } from 'redux';
  import createLogger                     from 'redux-logger';
  import thunkMiddleware                  from 'redux-thunk';
  import { syncHistory }                  from 'react-router-redux';
  import reducers                         from '../reducers';
  
  const loggerMiddleware = createLogger({
      level: 'info',
      collapsed: true,
  });
  
  export default function configureStore(browserHistory) {
      const reduxRouterMiddleware = syncHistory(browserHistory);
      const createStoreWithMiddleware = applyMiddleware(reduxRouterMiddleware, thunkMiddleware, loggerMiddleware)(createStore);
  
      return createStoreWithMiddleware(reducers);
  }