'use client'; import { TaskCard } from './TaskCard'; import type { KanbanBoard as KanbanBoardType } from '@/types/kanban'; interface KanbanBoardProps { board: KanbanBoardType; } // Legacy KanbanBoard component using old Kanban type // For new Issue-based Kanban, use the page at /projects/[id]/kanban export function KanbanBoard({ board }: KanbanBoardProps) { return (

{board.projectName}

Total tasks: {board.columns.reduce((acc, col) => acc + col.tasks.length, 0)}

{board.columns.map((column) => (

{column.title}

{column.tasks.length}
{column.tasks.map((task) => ( ))} {column.tasks.length === 0 && (

No tasks

)}
))}

Note: Drag-and-drop functionality will be implemented in Sprint 2

); }