import React from "react"; import { motion } from "framer-motion"; import { FileText, ZoomIn, ZoomOut, RotateCw, Maximize2 } from "lucide-react"; import { Button } from "@/components/ui/button"; export default function DocumentPreview({ file, isProcessing }) { // Mock preview - in real app would show actual document const mockPages = [1, 2, 3]; return (
{/* Header */}

Document Preview

{file?.name || "No file selected"}

{file && (
100%
)}
{/* Preview Area */}
{!file ? (

Upload a document to preview

) : (
{mockPages.map((page, index) => ( {/* Mock document content */}
{/* Header simulation */}
{/* Text lines simulation */}
{[...Array(12)].map((_, i) => (
))}
{/* Table simulation */}
{[...Array(4)].map((_, i) => (
{[...Array(3)].map((_, j) => (
))}
))}
{/* Processing overlay */} {isProcessing && ( )} {/* Page number */}
Page {page}
))}
)}
); }