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

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

import { DepositsResolver } from './resolvers/deposit.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';

export const depositRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      deposits: DepositsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
