import { useDroppable } from '@dnd-kit/core'; import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'; import { ListWithCards, Card as CardType } from '../../types/kanban'; import { KanbanCard } from './KanbanCard'; interface KanbanColumnProps { list: ListWithCards; cards: CardType[]; onCardClick: (card: CardType) => void; } export function KanbanColumn({ list, cards, onCardClick }: KanbanColumnProps) { const { setNodeRef, isOver } = useDroppable({ id: list.id.toString(), }); return (

{list.name} {cards.length}

card.id.toString())} strategy={verticalListSortingStrategy} >
{cards.map((card) => ( onCardClick(card)} /> ))}
); }