import { DossiersListingScreenComponent } from './screen/dossiers-listing-screen.component';
import { CompositeRouteGuard, IqserRoutes } from '@iqser/common-ui';
import { DossierFilesGuard } from '@guards/dossier-files-guard';
import { ConfigService } from './config.service';
import { ACTIVE_DOSSIERS_SERVICE } from '../../tokens';

export default [
    {
        path: '',
        component: DossiersListingScreenComponent,
        pathMatch: 'full',
        canActivate: [CompositeRouteGuard],
        data: { routeGuards: [DossierFilesGuard], reuse: true, dossiersService: ACTIVE_DOSSIERS_SERVICE },
        providers: [ConfigService],
    },
] satisfies IqserRoutes;
