import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ApplicationComponent } from './application/application.component';
import { StudyMaterialComponent } from './study-material/study-material.component';
import { DocumentsComponent } from './documents/documents.component';
import { AnswerBookletComponent } from './answer-booklet/answer-booklet.component';

const routes: Routes = [
  {
    path: '',
    data: {
     title: 'Status'
    },
    children: [
      {
        path: 'application',
        component: ApplicationComponent,
        data: {
          title: 'Application'
        }
      },{
        path: 'studyMaterial',
        component: StudyMaterialComponent,
        data: {
          title: 'Study Material'
        }
      },{
        path: 'answerBooklet',
        component: AnswerBookletComponent,
        data: {
          title: 'Answer Booklet'
        }
      },{
        path: 'documents',
        component: DocumentsComponent,
        data: {
          title: 'Documents'
        }
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class StatusRoutingModule {}
