import { calculateLastInstallmentDate, formatCurrentInstallment, formatLastInstallmentDate, formatPurchaseDate, } from "@/lib/installments/utils"; import { RiArrowDownFill, RiCheckLine } from "@remixicon/react"; 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 (