import React, { ReactNode } from "react"; import { useDroppable } from "@dnd-kit/core"; import { SortableContext, verticalListSortingStrategy, } from "@dnd-kit/sortable"; import { Stack } from "@mantine/core"; import { BaseDraggable } from "@/components/dnd/types/types"; type Props = { id: string; items: TItem[]; renderItem: (item: TItem) => ReactNode; children?: ReactNode; }; const FunnelColumn = ({ id, items, renderItem, children, }: Props) => { const { setNodeRef } = useDroppable({ id }); return ( <> {children} {items.map(renderItem)} ); }; export default FunnelColumn;