import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReceivePaymentRouterComponent } from './router/receive-payment-router.component';
import {RouterModule, Routes} from '@angular/router';
import {SharedModule} from '../../../shared/shared.module';
import { ReceivePaymentContainer } from './container/receive-payment/receive-payment.container';
import { ReceivePaymentListComponent } from './presenter/list/receive-payment-list/receive-payment-list.component';
import { ReceivePaymentSummaryComponent } from './presenter/summary/receive-payment-summary/receive-payment-summary.component';
import { ReceivePaymentDetailComponent } from './presenter/detail/receive-payment-detail/receive-payment-detail.component';
import { ReceivePaymentSearchComponent } from './presenter/search/receive-payment-search/receive-payment-search.component';


const routes: Routes = [
  {
    path: '',
    component: ReceivePaymentRouterComponent,
    children: [
      {
        path: '',
        component: ReceivePaymentContainer
      },
      {
        path: 'view/:id',
        component: ReceivePaymentDetailComponent
      },
    ]
  }
];
@NgModule({
  declarations: [
    ReceivePaymentRouterComponent,
    ReceivePaymentContainer,
    ReceivePaymentListComponent,
    ReceivePaymentSummaryComponent,
    ReceivePaymentDetailComponent,
    ReceivePaymentSearchComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes)
  ]
})
export class ReceivePaymentModule { }
