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