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

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

import {
  PartnerListResolver,
  PartnersResolver,
} from './resolvers/partner.resolver';

export const partnerRoutes: Route[] = [
  // {
  //   path: '',
  //   pathMatch: 'full',
  //   redirectTo: 'all',
  // },
  {
    path: 'all',
    component: ListComponent,
    resolve: {
      listPartner: PartnerListResolver,
    },
  },
  {
    path: 'main-office',
    component: ListComponent,
    resolve: {
      Partners: PartnersResolver,
    },
  },
  {
    path: 'branch',
    component: ListComponent,
    resolve: {
      Partners: PartnersResolver,
    },
  },
  {
    path: 'division',
    component: ListComponent,
    resolve: {
      Partners: PartnersResolver,
    },
  },
  {
    path: 'office',
    component: ListComponent,
    resolve: {
      Partners: PartnersResolver,
    },
  },
  {
    path: 'store',
    component: ListComponent,
    resolve: {
      Partners: PartnersResolver,
    },
  },
];
