import Link from 'next/link' import type { RunSummary } from '@/lib/types/run' type Props = { runs: RunSummary[] } function DecisionBadge({ decision }: { decision: string }) { const lower = decision.toLowerCase() if (lower === 'buy') return {decision} if (lower === 'sell') return {decision} if (lower === 'hold') return {decision} return ( {decision} ) } function StatusDot({ decision }: { decision?: string }) { const lower = decision?.toLowerCase() const color = lower === 'buy' ? 'var(--buy)' : lower === 'sell' ? 'var(--sell)' : lower === 'hold' ? 'var(--hold)' : 'var(--text-low)' return (
) } export default function RunHistoryTable({ runs }: Props) { if (runs.length === 0) { return (No analysis runs yet
Start your first analysis to see results here