'use client' import type { MatrixResponse } from '@/lib/sdk/training/types' import { ROLE_LABELS, ALL_ROLES } from '@/lib/sdk/training/types' interface MatrixTabProps { matrix: MatrixResponse onDeleteEntry: (roleCode: string, moduleId: string) => void onAddEntry: (roleCode: string) => void } export function MatrixTab({ matrix, onDeleteEntry, onAddEntry }: MatrixTabProps) { return (
Compliance Training Matrix (CTM): Welche Rollen benoetigen welche Schulungsmodule
| Rolle | Module | Anzahl |
|---|---|---|
| {role} {ROLE_LABELS[role]} |
{entries.map(e => (
{e.is_mandatory ? '🔴' : '🔵'} {e.module_code}
))}
{entries.length === 0 && Keine Module}
|
{entries.length} |