import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CreateExamConditionRouter} from './router/create-exam-condition-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CreateExamConditionContainer } from './container/create-exam-condition/create-exam-condition.container';
import { CreateExamConditionFormComponent } from './presenter/form/create-exam-condition-form/create-exam-condition-form.component';
import { CreateExamConditionListComponent } from './presenter/list/create-exam-condition-list/create-exam-condition-list.component';
import { CreateExamConditionSearchComponent } from './presenter/search/create-exam-condition-search/create-exam-condition-search.component';

const routes: Routes = [
  {
    path: '',
    component: CreateExamConditionRouter,
    children: [
      {
        path: '',
        component: CreateExamConditionContainer
      },
      {
        path: 'add',
        component: CreateExamConditionFormComponent
      },
      {
        path: 'edit/:id',
        component: CreateExamConditionFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    CreateExamConditionRouter,
    CreateExamConditionContainer,
    CreateExamConditionFormComponent,
    CreateExamConditionListComponent,
    CreateExamConditionSearchComponent,
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class CreateExamConditionModule { }
