import { Link } from "@tanstack/react-router"; import { Card } from "@rubis/ui"; import { Eyebrow } from "@rubis/ui"; import { cn } from "@/lib/utils"; /** * TopLatePayers — wireframe 4.1, panneau "Top retards". * * Note marque : "manié avec tact, jamais visible côté client" (cf. annotation * du wireframe). On nomme "Retards récurrents" et pas "Mauvais payeurs". */ export type LatePayer = { clientId: string; name: string; lateInvoicesCount: number; }; type TopLatePayersProps = { payers: LatePayer[]; className?: string; }; export function TopLatePayers({ payers, className }: TopLatePayersProps) { return (
Retards récurrents Voir tout
{payers.length === 0 ? (

Aucun retard récurrent. Vos clients sont sérieux.

) : ( )}
); }