/** * HistoryPanel – Zeigt die Undo/Redo-Historie an. * F-CAD-09: Historie einsehbar */ import React from 'react'; import type { HistoryEntry } from '../history'; interface HistoryPanelProps { entries: HistoryEntry[]; onJumpTo: (entryId: string) => void; onClose: () => void; } const formatTime = (ts: number): string => { const d = new Date(ts); return d.toLocaleTimeString('de-DE', { hour: '2-digit', minute: '2-digit', second: '2-digit' }); }; const HistoryPanel: React.FC = ({ entries, onJumpTo, onClose }) => { if (entries.length === 0) { return (

Historie

Keine Historie vorhanden.

); } return (

Historie ({entries.length})

{entries.map((entry, idx) => ( ))}
); }; export default HistoryPanel;