import { format, isPast, isToday } from "date-fns"; import type { Card, Label } from "@/types/board"; import { LabelDots } from "@/components/board/LabelDots"; import { ChecklistBar } from "@/components/board/ChecklistBar"; interface CardThumbnailProps { card: Card; boardLabels: Label[]; } export function CardThumbnail({ card, boardLabels }: CardThumbnailProps) { const hasDueDate = card.dueDate != null; const dueDate = hasDueDate ? new Date(card.dueDate!) : null; const overdue = dueDate != null && isPast(dueDate) && !isToday(dueDate); function handleClick() { // Card detail modal will be wired in Task 11 console.log("Card clicked:", card.id); } return ( ); }