'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 (
Total tasks: {totalTasks}
No tasks
Note: Drag-and-drop functionality will be implemented in Sprint 2