import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { OnlineSummaryRouter } from './router/router';
import { OnlineSummaryContainer } from './container/online-summary/online-summary.container';
import { SharedModule } from 'src/app/shared/shared.module';
import { ListComponent } from './presenter/list/list.component';
import { DialogComponent } from './presenter/dialog/dialog.component';

const routes: Routes = [
  {
    path: '',
    component: OnlineSummaryRouter,
    children: [
      {
        path: '',
        component: OnlineSummaryContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    OnlineSummaryRouter,
    OnlineSummaryContainer,
    ListComponent,
    DialogComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class OnlineSummaryModule { }
