import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from 'src/app/shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { DailySummaryRouter } from './router/daily-summary-router';
import { DailySummaryContainer } from './container/daily-summary/daily-summary.container';
import { DailySummaryListComponent } from './presenter/list/daily-summary-list/daily-summary-list.component';
import { DailySummarySearchComponent } from './presenter/search/daily-summary-search/daily-summary-search.component';
import { DialogComponent } from './presenter/dialog/dialog.component';

const routes : Routes =[
  {
    path:'',
    component: DailySummaryRouter,
    children:[
      {
        path:'',
        component: DailySummaryContainer
      },
    ]
  }
]

@NgModule({
  declarations: [
    DailySummaryRouter,
    DailySummaryContainer,
    DailySummaryListComponent,
    DailySummarySearchComponent,
    DialogComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class DailySummaryModule { }
