import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ExtendInformationRoomRouter } from './router/extend-information-room-router';
import { ExtendInformationRoomContainer } from './container/extend-information-room/extend-information-room.container';
import { ExtendInformationRoomFormComponent } from './presenter/form/extend-information-room-form/extend-information-room-form.component';
import { ExtendInformationRoomListComponent } from './presenter/list/extend-information-room-list/extend-information-room-list.component';
import { ExtendInformationRoomSearchComponent } from './presenter/search/extend-information-room-search/extend-information-room-search.component';
import {RouterModule, Routes} from '@angular/router';
import {SharedModule} from '../../../shared/shared.module';

const routes: Routes = [
  {
    path: '',
    component: ExtendInformationRoomRouter,
    children: [
      {
        path: '',
        component: ExtendInformationRoomContainer
      },
      {
        path: 'edit/:id',
        component: ExtendInformationRoomFormComponent
      },
    ]
  }
];

@NgModule({
  declarations: [
    ExtendInformationRoomRouter,
    ExtendInformationRoomContainer,
    ExtendInformationRoomFormComponent,
    ExtendInformationRoomListComponent,
    ExtendInformationRoomSearchComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class ExtendInformationRoomModule { }
