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

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

import { CompLogsResolver } from './resolvers/comp-log.resolver';
import { UserResolver } from '../../member/user/resolvers/user.resolver';

export const compLogRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      compLogs: CompLogsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
