import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { IRouteConfig } from '@shared/ui-api/interfaces/route-config/route-config';
import { UserProfileResolver } from '@fleio-api/profile/user-profile/user-profile.resolver';
import { UserReferralDetailsTabComponent } from './user-referral-details-tab/user-referral-details-tab.component';

const routes: Routes = [
  {
    path: '',
    component: UserReferralDetailsTabComponent,
    resolve: {
      userProfile: UserProfileResolver,
    },
    data: {
      config: {
        getBreadCrumbDetail: () => $localize`My referrals`,
      } as IRouteConfig,
    }
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class UserReferralRoutingModule {
}
