import EnrollForm from './routes/EnrollForm'
import EnrollResult from './routes/EnrollResult'

export default (store) => ({
  path: 'enroll',
  getComponent (nextState, next) {
    require.ensure([], (require) => {
      const component = require('layouts/EnrollLayout').default
      next(null, component)
    })
  },
  indexRoute: EnrollForm(store),
  childRoutes: [
    EnrollResult(store)
  ]
})
