import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CandidateListRouter } from './router/candidate-list-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CandidateListContainer } from './container/candidate-list/candidate-list.container';
import { CandidateListSearchComponent } from './presenter/search/candidate-list-search/candidate-list-search.component';
import { CandidateListListComponent } from './presenter/list/candidate-list-list/candidate-list-list.component';
import { DialogChangeSeatComponent } from './presenter/dialog/dialog-change-seat/dialog-change-seat.component';
import {ScrollingModule} from '@angular/cdk/scrolling';
import { DialogChangeRoomComponent } from './presenter/dialog/dialog-change-room/dialog-change-room.component';
import { DialogSyncComponent } from './presenter/dialog/dialog-sync/dialog-sync.component';
import { CandidateListTestInformationContainer } from './container/candidate-list-test-information/candidate-list-test-information.container';
import { CandidateListTestInformationComponent } from './presenter/list/candidate-list-test-information/candidate-list-test-information.component';
import { CandidateListTestInformationSearchComponent } from './presenter/search/candidate-list-test-information-search/candidate-list-test-information-search.component';

const routes: Routes = [
  {
    path: '',
    component: CandidateListRouter,
    children: [
      {
        path: '',
        component: CandidateListTestInformationContainer
      },
      {
        path: 'view/:id',
        component: CandidateListContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    CandidateListRouter,
    CandidateListContainer,
    CandidateListSearchComponent,
    CandidateListListComponent,
    DialogChangeSeatComponent,
    DialogChangeRoomComponent,
    DialogSyncComponent,
    CandidateListTestInformationContainer,
    CandidateListTestInformationComponent,
    CandidateListTestInformationSearchComponent,
  ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes),
        ScrollingModule,
    ]
})
export class CandidateListModule { }
