From a7e23ec714faabbeaa3b6a673e7e2d86825944bd Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 16 Jul 2025 12:22:09 +0200 Subject: media drag overlay cleanup --- apps/web/src/components/ui/drag-overlay.tsx | 91 ----------------------------- 1 file changed, 91 deletions(-) delete mode 100644 apps/web/src/components/ui/drag-overlay.tsx (limited to 'apps/web/src/components/ui') diff --git a/apps/web/src/components/ui/drag-overlay.tsx b/apps/web/src/components/ui/drag-overlay.tsx deleted file mode 100644 index eb190e89..00000000 --- a/apps/web/src/components/ui/drag-overlay.tsx +++ /dev/null @@ -1,91 +0,0 @@ -import { Upload, Plus, Image } from "lucide-react"; -import { Button } from "@/components/ui/button"; - -interface DragOverlayProps { - isVisible: boolean; - title?: string; - description?: string; - isProcessing?: boolean; - progress?: number; - onClick?: () => void; - isEmptyState?: boolean; -} - -export function DragOverlay({ - isVisible, - title = "Drop files here", - description = "Images, videos, and audio files", - isProcessing = false, - progress = 0, - onClick, - isEmptyState = false, -}: DragOverlayProps) { - if (!isVisible) return null; - - const handleClick = (e: React.MouseEvent) => { - if (isProcessing || !onClick) return; - e.preventDefault(); - e.stopPropagation(); - onClick(); - }; - - return ( -
-
- {isProcessing ? ( - - ) : isEmptyState ? ( - - ) : ( - - )} -
- -
-

- {isProcessing ? "Processing files..." : title} -

-

- {isProcessing - ? `Processing your files (${progress}%)` - : description - } -

-
- - {!isProcessing && ( -
- -

- {isEmptyState - ? "Supports images, videos, and audio files" - : "Or drop your files here" - } -

-
- )} - - {isProcessing && ( -
-
-
-
-
- )} -
- ); -} -- cgit v1.3.1