import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ManageReceiptRouterComponent } from './router/manage-receipt-router.component';
import {SharedModule} from '../../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { ManageReceiptContainer } from './container/manage-receipt/manage-receipt.container';
import { ManageReceiptSearchComponent } from './presenter/search/manage-receipt-search/manage-receipt-search.component';
import { ManageReceiptListComponent } from './presenter/list/manage-receipt-list/manage-receipt-list.component';

const routes: Routes = [
  {
    path: '',
    component: ManageReceiptRouterComponent,
    children: [
      {
        path: '',
        component: ManageReceiptContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    ManageReceiptRouterComponent,
    ManageReceiptContainer,
    ManageReceiptSearchComponent,
    ManageReceiptListComponent
  ],
  imports: [
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class ManageReceiptModule { }
