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

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

import { PartnerCalculatesResolver } from './resolvers/partner-calculate.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';

export const partnerCalculateRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      partnerCalculates: PartnerCalculatesResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
