'use client' import React from 'react' export function AuditLog({ history }: { history: any[] }) { return (

Aktivitaeten

{history.length === 0 && (
Keine Eintraege
)} {history.map((entry, idx) => (
{entry.previous_status ? `${entry.previous_status} → ${entry.new_status}` : entry.new_status } {entry.comment && `: ${entry.comment}`}
{entry.created_at ? new Date(entry.created_at).toLocaleDateString('de-DE', { day: '2-digit', month: '2-digit', year: 'numeric', hour: '2-digit', minute: '2-digit' }) : '' } {' - '} {entry.changed_by || 'System'}
))}
) }