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

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

import { UnconnectedsResolver } from './resolvers/unconnected.resolver';
import { UserResolver } from '../user/resolvers/user.resolver';

export const unconnectedRoutes: Route[] = [
  {
    path: '',
    component: ListComponent,
    resolve: {
      unconnecteds: UnconnectedsResolver,
    },
  },
  {
    path: ':id',
    component: ViewComponent,
    resolve: {
      users: UserResolver,
    },
  },
];
