'use client'; import React, { useMemo } from 'react'; import { TaskCard } from './TaskCard'; import type { LegacyKanbanBoard } from '@/types/kanban'; interface KanbanBoardProps { board: LegacyKanbanBoard; } // Legacy KanbanBoard component using old Kanban type // For new Issue-based Kanban, use the page at /projects/[id]/kanban export const KanbanBoard = React.memo(function KanbanBoard({ board }: KanbanBoardProps) { const totalTasks = useMemo(() => { return board.columns.reduce((acc, col) => acc + col.tasks.length, 0); }, [board.columns]); return (

{board.projectName}

Total tasks: {totalTasks}

{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

); });