import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ManageExamOfficerContainer } from './container/manage-exam-officer/manage-exam-officer.container';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import {ManageExamOfficerRouter} from './router/manage-exam-officer-router';
import { ManageExamOfficerListComponent } from './presenter/manage-exam-officer-list/manage-exam-officer-list.component';
import { ManageExamOfficerSearchComponent } from './presenter/manage-exam-officer-search/manage-exam-officer-search.component';
import { ManageExamOfficerDetailComponent } from './presenter/manage-exam-officer-detail/manage-exam-officer-detail.component';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';

const routes: Routes = [
  {
    path: '',
    component: ManageExamOfficerRouter,
    children: [
      {
        path: '',
        component: ManageExamOfficerContainer
      },
      {
        path: 'edit/:id',
        component: ManageExamOfficerDetailComponent
      },
      {
        path: 'add',
        component: ManageExamOfficerDetailComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    ManageExamOfficerRouter,
    ManageExamOfficerContainer,
    ManageExamOfficerListComponent,
    ManageExamOfficerSearchComponent,
    ManageExamOfficerDetailComponent
  ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes),
        MatProgressSpinnerModule,
    ]
})
export class ManageExamOfficerModule { }
