import { Route } from '@angular/router';

import { ListComponent } from './components/list.component';
import { ViewComponent } from '../../member/user/components/view.component';

import { WithdrawsResolver } from './resolvers/withdraw.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';

export const withdrawRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      withdraws: WithdrawsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
