import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
import {ManageStakeholdersComponent} from "./manageStakeholders.component";
import {LoginGuard} from "../openaireLibrary/login/loginGuard.guard";

@NgModule({
  imports: [
    RouterModule.forChild([
      {
        path: '',
        component: ManageStakeholdersComponent,
        canActivate: [LoginGuard],
        canDeactivate: [PreviousRouteRecorder],
        data: {hasSidebar: true}
      }
    ])
  ]
})
export class ManageStakeholdersRoutingModule {
}
