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

export const riskRoutes: Routes = [
  {
    path: 'risk-knowledge',
    loadComponent: () => import('./risk-knowledge/risk-knowledge.component').then(m => m.RiskKnowledgeComponent),
    data: {
      title: '风险知识',
      icon: 'icons:knowledge-list',
      weight: 1,
    },
  },
  {
    path: 'risk-bank',
    loadComponent: () => import('./risk-bank/risk-bank.component').then(m => m.RiskBankComponent),
    data: {
      title: '风险库',
      icon: 'icons:knowledge-bank',
      weight: 2,
    },
  },
  {
    path: 'risk-document',
    loadComponent: () => import('./risk-doc/risk-doc.component').then(m => m.RiskDocComponent),
    data: {
      title: '风险文档',
      icon: 'icons:knowledge-doc',
      weight: 3,
    },
  },
  {
    path: 'risk-list',
    loadComponent: () => import('./risk-list/risk-list.component').then(m => m.RiskListComponent),
    data: {
      title: '风险清单',
      icon: 'icons:list',
      weight: 4,
    },
  },
  {
    path: 'risk-hint',
    loadComponent: () => import('./risk-hint/risk-hint.component').then(m => m.RiskHintComponent),
    data: {
      title: '风险项提示',
      icon: 'icons:hint',
      weight: 5,
    },
  },
  { path: '', pathMatch: 'full', redirectTo: 'risk-knowledge' },
];
