import { CSS } from "@dnd-kit/utilities"; import { useSortable } from "@dnd-kit/sortable"; import { GripVertical } from "lucide-react"; import { cn } from "~/lib/utils"; export function SortableDraftOrderRow({ teamId, index, teamName, ownerName, disabled = false, }: { teamId: string; index: number; teamName: string; ownerName: string | null; disabled?: boolean; }) { const { attributes, listeners, setNodeRef, transform, transition, isDragging, } = useSortable({ id: teamId }); return (
{index + 1}

{teamName}

{ownerName &&

{ownerName}

}
); }