import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../../../shared/shared.module';
import { RouterModule, Routes } from '@angular/router';
import { OnlineCounterRouter } from './router/router';
import { OnlineCounterContainer } from './container/online-counter/online-counter.container';
import { SearchComponent } from './presenter/search/search.component';
import { ListComponent } from './presenter/list/list.component';
import { FormDialogComponent } from './presenter/dialog/form-dialog/form-dialog.component';

const routes: Routes = [
  {
    path: '',
    component: OnlineCounterRouter,
    children: [
      {
        path: '',
        component: OnlineCounterContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    OnlineCounterRouter,
    OnlineCounterContainer,
    SearchComponent,
    ListComponent,
    FormDialogComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class OnlineCounterModule { }
