import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CheckCandidateListRouter } from './router/check-candidate-list-router';
import { CheckCandidateListContainer } from './container/check-candidate-list/check-candidate-list.container';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CheckCandidateListSearchComponent } from './presenter/check-candidate-list-search/check-candidate-list-search.component';
import { CheckCandidateListTableComponent } from './presenter/check-candidate-list-table/check-candidate-list-table.component';
import { CheckCandidateTestingListComponent } from './presenter/check-candidate-testing-list/check-candidate-testing-list.component';
import {
  ChangeExamInformationFormComponent
} from '../../exam-setting/change-exam-information/presenter/form/change-exam-information-form/change-exam-information-form.component';
import { CheckCandidateTestingListSearchComponent } from './presenter/check-candidate-testing-list-search/check-candidate-testing-list-search.component';
import { CheckCandidateTestingContainer } from './container/check-candidate-testing/check-candidate-testing.container';


const routes: Routes = [
  {
    path: '',
    component: CheckCandidateListRouter,
    children: [
      {
        path: 'view/:id',
        component: CheckCandidateListContainer
      },
      {
        path: '',
        component: CheckCandidateTestingContainer
      },
      // {
      //   path: 'view/:id',
      //   component: CheckCandidateTestingListComponent
      // },
    ]
  }
];


@NgModule({
  declarations: [
    CheckCandidateListRouter,
    CheckCandidateListContainer,
    CheckCandidateListSearchComponent,
    CheckCandidateListTableComponent,
    CheckCandidateTestingListComponent,
    CheckCandidateTestingListSearchComponent,
    CheckCandidateTestingContainer
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class CheckCandidateListModule { }
