import type { Exception } from "../types"; import "./ExceptionsPanel.css"; export interface ExceptionsPanelProps { exceptions?: Exception[]; onJumpToFirstException: () => void; hasFirstException: boolean; } function formatTimestamp(unixMillis: number): string { const date = new Date(unixMillis); const hh = String(date.getHours()).padStart(2, "0"); const mm = String(date.getMinutes()).padStart(2, "0"); const ss = String(date.getSeconds()).padStart(2, "0"); const ms = String(date.getMilliseconds()).padStart(3, "0"); return `${hh}:${mm}:${ss}.${ms}`; } export default function ExceptionsPanel({ exceptions, onJumpToFirstException, hasFirstException, }: ExceptionsPanelProps) { return (
{exception.stack_trace}
) : null}