'use client'; import { useRef } from 'react'; import { Upload, FileSpreadsheet, FileText, Presentation } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useI18n } from '@/lib/i18n'; import type { UseFileUploadReturn } from './types'; interface FileDropZoneProps { upload: UseFileUploadReturn; } export function FileDropZone({ upload }: FileDropZoneProps) { const inputRef = useRef(null); const { t } = useI18n(); const handleClick = () => inputRef.current?.click(); return (
e.key === 'Enter' || e.key === ' ' ? handleClick() : undefined} > {/* Icon */}
{/* Text */}

{t('dashboard.translate.dropzone.title')}

{t('dashboard.translate.dropzone.subtitle')}

{/* Format badges */}
Word (.docx) Excel (.xlsx) PowerPoint (.pptx) PDF PDF (.pdf)
); }