import { injectReducer } from 'store/reducers'

export default (store) => ({
  path: 'id=:projectId/name=:projectName',
  getComponent (nextState, next) {
    require.ensure([], (require) => {
      const component = require('./containers/EnrollResult').default
      const reducer = require('./reducers/enroll').default
      injectReducer(store, {
        key: 'enroll',
        reducer: reducer
      })
      next(null, component)
    })
  }
})
