import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ChangeExamInformationRouter } from './router/change-exam-information-router';
import {RouterModule, Routes} from '@angular/router';
import { ChangeExamInformationContainer } from './container/change-exam-information/change-exam-information.container';
import {SharedModule} from '../../../shared/shared.module';
import {MatTabsModule} from '@angular/material/tabs';
import { ChangeExamInformationListComponent } from './presenter/list/change-exam-information-list/change-exam-information-list.component';
import { ChangeExamInformationFormComponent } from './presenter/form/change-exam-information-form/change-exam-information-form.component';
import { ChangeExamInformationSearchComponent } from './presenter/search/change-exam-information-search/change-exam-information-search.component';
import { IsMainTrueComponent } from './presenter/list/is-main-true/is-main-true.component';
import { IsMainFalseComponent } from './presenter/list/is-main-false/is-main-false.component';

const routes: Routes = [
  {
    path: '',
    component: ChangeExamInformationRouter,
    children: [
      {
        path: '',
        component: ChangeExamInformationContainer
      },
      {
        path: 'edit/:id',
        component: ChangeExamInformationFormComponent
      },
      {
        path: 'info/:id',
        component: ChangeExamInformationFormComponent
      },
      {
        path: 'expand/:id',
        component: ChangeExamInformationFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    ChangeExamInformationRouter,
    ChangeExamInformationContainer,
    ChangeExamInformationListComponent,
    ChangeExamInformationFormComponent,
    ChangeExamInformationSearchComponent,
    IsMainTrueComponent,
    IsMainFalseComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
    MatTabsModule
  ]
})
export class ChangeExamInformationModule { }
