'use client'; import { Upload } from 'lucide-react'; import { SUPPORTED_EXTENSIONS } from '../utils/wordCount'; interface DropZoneProps { isDragging: boolean; onDrop: (e: React.DragEvent) => void; onDragOver: (e: React.DragEvent) => void; onDragLeave: () => void; onClick: () => void; } export function DropZone({ isDragging, onDrop, onDragOver, onDragLeave, onClick, }: DropZoneProps) { return (
e.key === 'Enter' && onClick()} className={` relative flex flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed px-6 py-2 cursor-pointer select-none transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-blue-400 focus-visible:ring-offset-2 ${ isDragging ? 'border-blue-400 bg-blue-50 scale-[1.01]' : 'border-slate-200 bg-slate-50 hover:border-blue-300 hover:bg-blue-50/50' } `} >

{isDragging ? 'Drop file here' : 'Drag & drop or click to browse'}

Supported: {SUPPORTED_EXTENSIONS.join(', ')} ยท Max 50 MB

); }