import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {SharedModule} from '../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { ChangeExamRoomRouter } from './router/router';
import { ChangeExamRoomContainer } from './container/change-exam-room/change-exam-room.container';
import { SearchComponent } from './presenter/search/search.component';
import { ListComponent } from './presenter/list/list.component';
import { ViewComponent } from './presenter/view/view.component';
import { DialogComponent } from './presenter/dialog/dialog.component';
import { ChangeExamRoomViewContainer } from './container/change-exam-room-view/change-exam-room-view.container';
import { RoomViewListComponent } from './presenter/room-view/room-view-list/room-view-list.component';
import { RoomViewSearchComponent } from './presenter/room-view/room-view-search/room-view-search.component';


const routes: Routes = [
  {
    path: '',
    component: ChangeExamRoomRouter,
    children: [
      {
        path: '',
        component: ChangeExamRoomContainer
      },
      {
        path: 'view/:id',
        component: ChangeExamRoomViewContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    ChangeExamRoomRouter,
    ChangeExamRoomContainer,
    SearchComponent,
    ListComponent,
    ViewComponent,
    DialogComponent,
    ChangeExamRoomViewContainer,
    RoomViewListComponent,
    RoomViewSearchComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class ChangeExamRoomModule {}
