/** * @file dashboard/KanbanColumn.tsx * @description Client component rendering a single column in the kanban board, containing a status header, count, task list, and fallback empty states. */ "use client"; import { Plus } from "lucide-react"; import KanbanCard from "./KanbanCard"; import { KanbanColumnProps } from "@/types/tasks"; /** * Renders a kanban column with an indicator color, title, task count, quick-add trigger, * and a list of rendered task cards or an empty placeholder. * * @param {KanbanColumnProps} props - The component props defining column metadata and task lists. * @returns {JSX.Element} The rendered kanban column component. */ export default function KanbanColumn(props: KanbanColumnProps) { return (
{/* Header */}

{props.title}

{props.count}
{/* Task List */}
{props.tasks.length === 0 ? (
No tasks
) : ( props.tasks.map((task) => (
)) )}
); }