'use client' import { AISystem } from './types' interface AISystemCardProps { system: AISystem onAssess: () => void onEdit: () => void onDelete: () => void assessing: boolean } const classificationColors: Record = { prohibited: 'bg-red-100 text-red-700 border-red-200', 'high-risk': 'bg-orange-100 text-orange-700 border-orange-200', 'limited-risk': 'bg-yellow-100 text-yellow-700 border-yellow-200', 'minimal-risk': 'bg-green-100 text-green-700 border-green-200', unclassified: 'bg-gray-100 text-gray-500 border-gray-200', } const classificationLabels: Record = { prohibited: 'Verboten', 'high-risk': 'Hochrisiko', 'limited-risk': 'Begrenztes Risiko', 'minimal-risk': 'Minimales Risiko', unclassified: 'Nicht klassifiziert', } const statusColors: Record = { draft: 'bg-gray-100 text-gray-500', classified: 'bg-blue-100 text-blue-700', compliant: 'bg-green-100 text-green-700', 'non-compliant': 'bg-red-100 text-red-700', } const statusLabels: Record = { draft: 'Entwurf', classified: 'Klassifiziert', compliant: 'Konform', 'non-compliant': 'Nicht konform', } export function AISystemCard({ system, onAssess, onEdit, onDelete, assessing }: AISystemCardProps) { return (
{classificationLabels[system.classification]} {statusLabels[system.status]}

{system.name}

{system.description}

Sektor: {system.sector} {system.assessmentDate && ( Klassifiziert: {system.assessmentDate.toLocaleDateString('de-DE')} )}
{system.obligations.length > 0 && (

Pflichten nach AI Act:

{system.obligations.map(obl => ( {obl} ))}
)} {system.assessmentResult && (

KI-Risikobewertung abgeschlossen

)}
) }