import { PanelFrame } from "./PanelFrame"; import type { HistoryItem } from "../state/types"; interface HistoryPanelProps { items: HistoryItem[]; onRefresh: () => Promise | void; onOpenTrace: (traceId: string) => Promise | void; } export function HistoryPanel({ items, onRefresh, onOpenTrace }: HistoryPanelProps) { return ( onRefresh()}> Обновить } >
{items.length === 0 ?

История пока пустая.

: null} {items.map((item) => ( ))}
); }