/** * @file dashboard/KanbanCard.tsx * @description Client component rendering an individual task card within a kanban column, featuring priority configuration, due dates, overdue highlights, and user avatars. */ "use client"; import { AlertCircle, Crown, CalendarDays } from "lucide-react"; import { KanbanCardProps } from "@/types/tasks"; /** * Renders a task card component displaying its title, priority badge, description, * deadline with hover time details, and creator/assignee avatars. * * @param {KanbanCardProps} props - The component props containing the task object. * @returns {JSX.Element} The rendered kanban card component. */ export default function KanbanCard({ task }: KanbanCardProps) { const isOverdue = task.dueDate && new Date(task.dueDate) < new Date() && task.status !== "done"; const filteredAssignees = (task.assignees || []).filter( (a) => a !== task.creator, ); return (
{task.description}
{/* --- Card Footer (Date, Mobile Action Menu, Avatars) --- */}