import React from "react"; import { CheckCircle, Clock, AlertCircle, XCircle, StopCircle, } from "lucide-react"; import type { Debt } from "../lib/supabase"; interface DebtTimelineProps { debt: Debt; } const timelineSteps = [ { key: "received", label: "Email Received", icon: CheckCircle }, { key: "negotiating", label: "Negotiating", icon: Clock }, { key: "settled", label: "Settled", icon: CheckCircle }, ]; const statusIcons = { received: CheckCircle, negotiating: Clock, settled: CheckCircle, failed: XCircle, opted_out: StopCircle, }; const statusColors = { received: "text-blue-600 dark:text-blue-400", negotiating: "text-yellow-600 dark:text-yellow-400", settled: "text-green-600 dark:text-green-400", failed: "text-red-600 dark:text-red-400", opted_out: "text-gray-600 dark:text-gray-400", }; export function DebtTimeline({ debt }: DebtTimelineProps) { const currentStepIndex = timelineSteps.findIndex( (step) => step.key === debt.status ); return (