"use client"; import { memo } from "react"; import { useDroppable } from "@dnd-kit/core"; import { cn } from "@/lib/utils"; import type { ReactNode } from "react"; interface KanbanColumnProps { id: string; title: string; colorClass: string; count: number; children: ReactNode; headerAction?: ReactNode; opacity?: number; showBorder?: boolean; hideScrollbar?: boolean; } export const KanbanColumn = memo(function KanbanColumn({ id, title, colorClass, count, children, headerAction, opacity = 100, showBorder = true, hideScrollbar = false, }: KanbanColumnProps) { const { setNodeRef, isOver } = useDroppable({ id }); return (
{/* Background layer with opacity */}
{/* Column Header */}

{title}

{headerAction} {count}
{/* Column Content */}
{children}
{/* Drop zone indicator when dragging over */} {isOver && (
)}
); });