import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ExtendInformationDateRouter } from './router/extend-information-date-router';
import { ExtendInformationDateContainer } from './container/extend-information-date/extend-information-date.container';
import { ExtendInformationDateFormComponent } from './presenter/form/extend-information-date-form/extend-information-date-form.component';
import { ExtendInformationDateListComponent } from './presenter/list/extend-information-date-list/extend-information-date-list.component';
import { ExtendInformationDateSearchComponent } from './presenter/search/extend-information-date-search/extend-information-date-search.component';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { DialogExtendInformationDateFormComponent } from './presenter/form/dialog-extend-information-date-form/dialog-extend-information-date-form.component';

const routes: Routes = [
  {
    path: '',
    component: ExtendInformationDateRouter,
    children: [
      {
        path: '',
        component: ExtendInformationDateContainer
      },
      {
        path: 'add',
        component: ExtendInformationDateFormComponent
      },
      {
        path: 'edit/:id',
        component: ExtendInformationDateFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    ExtendInformationDateRouter,
    ExtendInformationDateContainer,
    ExtendInformationDateFormComponent,
    ExtendInformationDateListComponent,
    ExtendInformationDateSearchComponent,
    DialogExtendInformationDateFormComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class ExtendInformationDateModule { }
