import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SeatChangeRouter } from './router/seat-change-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { SeatChangeContainer } from './container/seat-change/seat-change.container';
import { SeatChangeTestInformationContainer } from './container/seat-change-test-information/seat-change-test-information.container';
import { SeatChangeListComponent } from './presenter/seat-change/list/seat-change-list/seat-change-list.component';
import { SeatChangeSearchComponent } from './presenter/seat-change/search/seat-change-search/seat-change-search.component';
import { SeatChangeTestInformationListComponent } from './presenter/seat-change-test-information/list/seat-change-test-information-list/seat-change-test-information-list.component';
import { SeatChangeTestInformationSearchComponent } from './presenter/seat-change-test-information/search/seat-change-test-information-search/seat-change-test-information-search.component';
import { ChangeExamDayDialogComponent } from './presenter/change-exam-day-dialog/change-exam-day-dialog.component';

const routes: Routes = [
  {
    path: '',
    component: SeatChangeRouter,
    children: [
      {
        path: 'view/:id',
        component: SeatChangeContainer
      },
      {
        path: '',
        component: SeatChangeTestInformationContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    SeatChangeRouter,
    SeatChangeContainer,
    SeatChangeTestInformationContainer,
    SeatChangeListComponent,
    SeatChangeSearchComponent,
    SeatChangeTestInformationListComponent,
    SeatChangeTestInformationSearchComponent,
    ChangeExamDayDialogComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class SeatChangeModule { }
