"use client"; import { NotebookPen } from "lucide-react"; import { getGroupColor } from "@/lib/colors"; import { isDarkTheme } from "@/components/theme/use-dark-theme"; import { cn } from "@/lib/utils"; import type { GroupDTO } from "@/types/board"; /** * Purely presentational stand-in rendered inside . The real * GroupCard stays mounted (and wired to useSortable) at its slot while * dragging; re-mounting that same interactive component a second time here * would register a second useSortable/useDraggable for the same id. */ export function GroupCardOverlay({ group }: { group: GroupDTO }) { const isDark = isDarkTheme(); const color = getGroupColor(group.color); const borderColor = isDark ? color.dark : color.light; const backgroundColor = `color-mix(in srgb, ${isDark ? color.softDark : color.soft} 85%, var(--card))`; return (

{group.title}

{group.todos.length} to-do{group.todos.length === 1 ? "" : "s"}

); }