({ id }: DropZoneProps)
| 11 | } |
| 12 | |
| 13 | export function DropZone({ id }: DropZoneProps) { |
| 14 | const { isOver, setNodeRef } = useDroppable({ id }); |
| 15 | |
| 16 | return ( |
| 17 | <div |
| 18 | ref={setNodeRef} |
| 19 | className={cn( |
| 20 | "h-2 rounded-sm border border-transparent transition-colors", |
| 21 | isOver && "border-primary/60 bg-primary/20" |
| 22 | )} |
| 23 | aria-hidden="true" |
| 24 | /> |
| 25 | ); |
| 26 | } |