import React from 'react'; import { Box, Typography, Container, Card, CardContent, List, ListItem, } from '@mui/material'; import Grid from '@mui/material/GridLegacy'; import { CloudUpload as UploadIcon, AutoAwesome as AutoIcon, Search as SearchIcon, Security as SecurityIcon, Speed as SpeedIcon, Language as LanguageIcon, } from '@mui/icons-material'; import UploadZone from '../components/Upload/UploadZone'; import { useNavigate } from 'react-router-dom'; interface Feature { icon: React.ComponentType; title: string; description: string; } interface UploadedDocument { id: string; original_filename: string; filename: string; file_size: number; mime_type: string; created_at: string; } const features: Feature[] = [ { icon: AutoIcon, title: 'AI-Powered OCR', description: 'Advanced text extraction from any document type', }, { icon: SearchIcon, title: 'Full-Text Search', description: 'Find documents instantly by content or metadata', }, { icon: SpeedIcon, title: 'Lightning Fast', description: 'Process documents in seconds, not minutes', }, { icon: SecurityIcon, title: 'Secure & Private', description: 'Your documents are encrypted and protected', }, { icon: LanguageIcon, title: 'Multi-Language', description: 'Support for 100+ languages and scripts', }, ]; const UploadPage: React.FC = () => { const navigate = useNavigate(); const handleUploadComplete = (document: UploadedDocument): void => { // Optionally navigate to the document or show a success message console.log('Upload completed:', document); }; return ( Upload Documents Transform your documents with intelligent OCR processing {/* Upload Zone */} {/* Features Sidebar */} {/* Tips Card */} 📋 Upload Tips • For best OCR results, use high-resolution images • PDF files with text layers are processed faster • Ensure documents are well-lit and clearly readable • Maximum file size is 50MB per document ); }; export default UploadPage;