'use client' import type { DiagnosticEntry } from './types' export function DiagnosticPanel({ diagnostics, isLoading, onRun, }: { diagnostics: DiagnosticEntry[] isLoading: boolean onRun: () => void }) { const severityColors = { ok: 'text-green-600 bg-green-50', warning: 'text-yellow-600 bg-yellow-50', error: 'text-red-600 bg-red-50', } const severityIcons = { ok: '✓', warning: '⚠', error: '✕', } return (

Diagnostik

{diagnostics.length === 0 ? (

Klicke auf "Diagnose starten" um die Szene zu prüfen

) : (
{diagnostics.map((d, index) => (
{severityIcons[d.severity]} {d.category} {d.message}
))}
)}
) }