'use client' import { useState } from 'react' const actionLabels: Record = { account_created: 'Konto erstellt', email_analyzed: 'E-Mail analysiert', task_created: 'Aufgabe erstellt', sync_completed: 'Sync abgeschlossen', } export function AuditLogTab() { const [logs] = useState([ { id: '1', action: 'account_created', user: 'admin@breakpilot.de', timestamp: new Date().toISOString(), details: 'Konto schulleitung@example.de hinzugefuegt' }, { id: '2', action: 'email_analyzed', user: 'system', timestamp: new Date(Date.now() - 3600000).toISOString(), details: '5 E-Mails analysiert' }, { id: '3', action: 'task_created', user: 'system', timestamp: new Date(Date.now() - 7200000).toISOString(), details: 'Aufgabe aus Fristenerkennung erstellt' }, ]) return (

Audit-Log

Alle Aktionen im Mail-System

{logs.map((log) => ( ))}
Zeit Aktion Benutzer Details
{new Date(log.timestamp).toLocaleString('de-DE')} {actionLabels[log.action] || log.action} {log.user} {log.details}
) }