import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CreateExamInformationRouter } from './router/create-exam-information-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CreateExamInformationContainer } from './container/create-exam-information/create-exam-information.container';
import { CreateExamInformationSearchComponent } from './presenter/search/create-exam-information-search/create-exam-information-search.component';
import { CreateExamInformationListComponent } from './presenter/list/create-exam-information-list/create-exam-information-list.component';
import { CreateExamInformationFormComponent } from './presenter/form/create-exam-information-form/create-exam-information-form.component';
import {NgxMaterialTimepickerModule} from 'ngx-material-timepicker';

const routes: Routes = [
  {
    path: '',
    component: CreateExamInformationRouter,
    children: [
      {
        path: '',
        component: CreateExamInformationContainer
      },
      {
        path: 'add',
        component: CreateExamInformationFormComponent
      },
      {
        path: 'edit/:id',
        component: CreateExamInformationFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    CreateExamInformationRouter,
    CreateExamInformationContainer,
    CreateExamInformationSearchComponent,
    CreateExamInformationListComponent,
    CreateExamInformationFormComponent
  ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes),
        NgxMaterialTimepickerModule,
    ]
})
export class CreateExamInformationModule { }
