text: import { createStore, applyMiddleware, compose } from 'redux';
  import createSageMiddleware from 'redux-saga';
  import rootSaga from './modules/rootSaga';
  import rootReducer from './modules/rootReducer';
  
  const sagaMonitor =
    process.env.NODE_ENV === 'development'
      ? console.tron.createSagaMonitor()
      : null;
  const sagaMiddleware = createSageMiddleware({ sagaMonitor });
  const enhancer =
    process.env.NODE_ENV === 'development'
      ? compose(console.tron.createEnhancer(), applyMiddleware(sagaMiddleware))
      : applyMiddleware(sagaMiddleware);
  
  const store = createStore(rootReducer, enhancer);
  
  sagaMiddleware.run(rootSaga);
  
  export default store;
  