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

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

import { WebCalculatesResolver } from './resolvers/web-calculate.resolver';
import { UserResolver } from '../../dashboards/user/user.resolvers';

export const webCalculateRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      webCalculates: WebCalculatesResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
