import { FreightAccountComponent } from './components/freight-account/freight-account.component';
import { DriverAccountComponent } from './components/driver-account/driver-account.component';
import { RechargeRecordComponent } from './components/recharge-record/recharge-record.component';
import { WithdrawalsRecordComponent } from './components/withdrawals-record/withdrawals-record.component';
import { MainAccountComponent } from './components/main-account/main-account.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { FreightAccountDetailComponent } from './components/freight-account/freight-account-detail/freight-account-detail.component';
import { DriverAccountDetailComponent } from './components/driver-account/driver-account-detail/driver-account-detail.component';
import { WithdrawalsDetailComponent } from './components/withdrawals-record/withdrawals-detail/withdrawals-detail.component';

const routes: Routes = [
  { path: 'freight-account', component: FreightAccountComponent },
  { path: 'freight-account-detail/:id', component: FreightAccountDetailComponent },
  { path: 'driver-account', component: DriverAccountComponent },
  { path: 'driver-account-detail/:id', component: DriverAccountDetailComponent },
  { path: 'recharge-record', component: RechargeRecordComponent },
  { path: 'withdrawals-record', component: WithdrawalsRecordComponent },
  { path: 'withdrawals-detail/:id', component: WithdrawalsDetailComponent },
  { path: 'main-account', component: MainAccountComponent }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FinancialManagementRoutingModule {}
