'use client' import type { MatrixResponse } from '@/lib/sdk/training/types' import { ALL_ROLES, ROLE_LABELS } from '@/lib/sdk/training/types' export default function MatrixTab({ matrix, onDeleteEntry, onAddEntry, }: { matrix: MatrixResponse onDeleteEntry: (roleCode: string, moduleId: string) => void onAddEntry: (roleCode: string) => void }) { return (
Pflichtzuordnung von Schulungsmodulen zu Rollen
| Rolle | Zugewiesene Module | Aktion |
|---|---|---|
|
{ROLE_LABELS[role] ?? role}
{role}
|
{entries.length === 0 ? (
Keine Module zugewiesen
) : (
{entries.map(entry => (
)}
{entry.module_code ?? entry.module_id.slice(0, 8)}
{entry.is_mandatory && *}
))}
|
* = Pflichtmodul