import React from "react"; import { CalendarDays, Users } from "lucide-react"; import { Button } from "./button"; import { Badge } from "./badge"; import { cn } from "@/lib/utils"; import { formatCurrency } from "@/lib/format-currency"; import { formatDateShort } from "@/lib/format-date"; /** * A resumable loan application summary — shown when an existing user has one or * more draft applications and must pick which one to continue. Used on the * frontend "Getting Started" screen ahead of the individual/joint choice. */ export interface LoanDraftCardProps { applicantName: string; /** Names of any co-applicants — presence implies a joint application. */ coApplicantNames?: string[]; desiredLoanAmount?: number; createdAt: string; onContinue: () => void; className?: string; } export function LoanDraftCard({ applicantName, coApplicantNames = [], desiredLoanAmount, createdAt, onContinue, className, }: LoanDraftCardProps) { const isJoint = coApplicantNames.length > 0; return (