text: import { createStore, combineReducers, applyMiddleware } from 'redux';
  import thunk from 'redux-thunk';
  import { routerReducer, routerMiddleware } from 'react-router-redux';
  import createHistory from 'history/createBrowserHistory';
  import { composeWithDevTools } from 'redux-devtools-extension';
  import { i18nState } from 'redux-i18n';
  import user from 'redux/modules/user';
  import photos from 'redux/modules/photos';
  // import Reactotron from 'ReactotronConfig';
  
  const env = process.env.NODE_ENV;
  
  const history = createHistory();
  
  const middlewares = [thunk, routerMiddleware(history)];
  
  
  /* development 모드일 경우에 redux-logger 미들웨어 추가 */
  if (env === 'development') {
      const { logger } = require('redux-logger');
      middlewares.push(logger);
  }
  
  /* 이곳에 리듀서 추가 */
  const reducer = combineReducers({
      user,
      photos,
      routing: routerReducer,
      i18nState
  });
  
  let store;
  
  if (env === 'development') {
      store = initialState =>
          // Reactotron.createStore(
          //     reducer,
          //     composeWithDevTools(applyMiddleware(...middlewares)));
          createStore(
              reducer,
              composeWithDevTools(applyMiddleware(...middlewares)));
  } else {
      store = initialState =>
          createStore(reducer, applyMiddleware(...middlewares));
  }
  
  export { history };
  
  export default store();