text: import { createStore, compose, applyMiddleware } from 'redux';
  import createSagaMiddleware from 'redux-saga';
  
  import rootSaga from './modules/rootSaga';
  import rootReducer from './modules/rootReducer';
  
  const middlewares = [];
  
  const sagaMonitor = __DEV__ ? console.tron.createSagaMonitor() : null;
  
  const sagaMiddleware = createSagaMiddleware({ sagaMonitor });
  
  middlewares.push(sagaMiddleware);
  
  const composer = __DEV__
    ? compose(
        applyMiddleware(...middlewares),
        console.tron.createEnhancer()
      )
    : compose(applyMiddleware(...middlewares));
  
  const store = createStore(rootReducer, composer);
  
  sagaMiddleware.run(rootSaga);
  
  export default store;
  