import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CreateExamRoomRouter } from './router/create-exam-room-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CreateExamRoomContainer } from './container/create-exam-room/create-exam-room.container';
import { CreateExamRoomFormComponent } from './presenter/form/create-exam-room-form/create-exam-room-form.component';
import { CreateExamRoomListComponent } from './presenter/list/create-exam-room-list/create-exam-room-list.component';
import { CreateExamRoomSearchComponent } from './presenter/search/create-exam-room-search/create-exam-room-search.component';

const routes: Routes = [
  {
    path: '',
    component: CreateExamRoomRouter,
    children: [
      {
        path: '',
        component: CreateExamRoomContainer
      },
      {
        path: 'add',
        component: CreateExamRoomFormComponent
      },
      {
        path: 'edit/:id',
        component: CreateExamRoomFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    CreateExamRoomRouter,
    CreateExamRoomContainer,
    CreateExamRoomFormComponent,
    CreateExamRoomListComponent,
    CreateExamRoomSearchComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class CreateExamRoomModule { }
