import { RiArrowDownFill, RiCheckLine } from "@remixicon/react"; import { calculateLastInstallmentDate, formatPurchaseDate, formatLastInstallmentDate, formatCurrentInstallment, } from "@/lib/installments/utils"; type InstallmentTimelineProps = { purchaseDate: Date; currentInstallment: number; totalInstallments: number; period: string; }; export function InstallmentTimeline({ purchaseDate, currentInstallment, totalInstallments, period, }: InstallmentTimelineProps) { const lastInstallmentDate = calculateLastInstallmentDate( period, currentInstallment, totalInstallments, ); return (