import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CreateExamCalendarRouter } from './router/create-exam-calendar-router';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CreateExamCalenderContainer } from './container/create-exam-calender/create-exam-calender.container';
import { CreateExamCalendarFormComponent } from './presenter/form/create-exam-calendar-form/create-exam-calendar-form.component';
import { CreateExamCalendarListComponent } from './presenter/list/create-exam-calendar-list/create-exam-calendar-list.component';
import { CreateExamCalenderSearchComponent } from './presenter/search/create-exam-calender-search/create-exam-calender-search.component';

const routes: Routes = [
  {
    path: '',
    component: CreateExamCalendarRouter,
    children: [
      {
        path: '',
        component: CreateExamCalenderContainer
      },
      {
        path: 'add',
        component: CreateExamCalendarFormComponent
      },
      {
        path: 'edit/:id',
        component: CreateExamCalendarFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    CreateExamCalendarRouter,
    CreateExamCalenderContainer,
    CreateExamCalendarFormComponent,
    CreateExamCalendarListComponent,
    CreateExamCalenderSearchComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class CreateExamCalendarModule { }
