import type { PlaylistSound } from '@/lib/api/services/playlists' import type { Sound } from '@/lib/api/services/sounds' import { useDroppable } from '@dnd-kit/core' import { Music } from 'lucide-react' // Simple drop area for the end of the playlist export function EndDropArea() { const { setNodeRef } = useDroppable({ id: 'playlist-end', data: { type: 'playlist-end' }, }) return (
) } // Inline preview component that shows where the sound will be dropped interface InlinePreviewProps { sound: Sound | PlaylistSound position: number } export function InlinePreview({ sound, position }: InlinePreviewProps) { return (
{position + 1}
{sound.name}
) } // Drag overlay component that shows the dragged item interface DragOverlayContentProps { sound: Sound | PlaylistSound position?: number } export function DragOverlayContent({ sound, position }: DragOverlayContentProps) { // If position is provided, show as current playlist style if (position !== undefined) { return (
{position + 1}
{sound.name}
) } // Default available sound style return (
{sound.name}
) }