import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { routeState } from '../components/routing';
import { repos } from '../components/github';
import { authors } from '../components/library';
import { resourceFetchStatus } from '../resource-manager';

const rootReducer = combineReducers({
  routeState,
  repos,
  authors,
  resourceFetchStatus
});

const configureStore = () => {
  const middlewares = [thunk];

  if (process.env.NODE_ENV && process.env.NODE_ENV !== 'production') {
    middlewares.push(createLogger());
  }

  return createStore(
    rootReducer,
    applyMiddleware(...middlewares)
  );
}

const store = configureStore();

export default store;

@@ -103,16 +103,18 @@
 ;%0Aimport
+ %7B
  createL
@@ -118,16 +118,18 @@
 teLogger
+ %7D
  from 'r

Fix usage of redux-logger