Update frontend/src/components/ocr/DocumentPreview.jsx
Browse files
frontend/src/components/ocr/DocumentPreview.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import { motion } from "framer-motion";
|
|
| 3 |
import { FileText, ZoomIn, ZoomOut, RotateCw } from "lucide-react";
|
| 4 |
import { Button } from "@/components/ui/button";
|
| 5 |
|
| 6 |
-
export default function DocumentPreview({ file, isProcessing }) {
|
| 7 |
const [previewUrls, setPreviewUrls] = useState([]);
|
| 8 |
const [zoom, setZoom] = useState(100);
|
| 9 |
const [rotation, setRotation] = useState(0);
|
|
@@ -185,7 +185,11 @@ export default function DocumentPreview({ file, isProcessing }) {
|
|
| 185 |
/>
|
| 186 |
) : (
|
| 187 |
<div className="p-8 text-center">
|
| 188 |
-
<p className="text-slate-400 text-sm">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
</div>
|
| 190 |
)}
|
| 191 |
|
|
|
|
| 3 |
import { FileText, ZoomIn, ZoomOut, RotateCw } from "lucide-react";
|
| 4 |
import { Button } from "@/components/ui/button";
|
| 5 |
|
| 6 |
+
export default function DocumentPreview({ file, isProcessing, isFromHistory = false }) {
|
| 7 |
const [previewUrls, setPreviewUrls] = useState([]);
|
| 8 |
const [zoom, setZoom] = useState(100);
|
| 9 |
const [rotation, setRotation] = useState(0);
|
|
|
|
| 185 |
/>
|
| 186 |
) : (
|
| 187 |
<div className="p-8 text-center">
|
| 188 |
+
<p className="text-slate-400 text-sm">
|
| 189 |
+
{isFromHistory
|
| 190 |
+
? "Original document not available for historical extractions"
|
| 191 |
+
: "Unable to load preview"}
|
| 192 |
+
</p>
|
| 193 |
</div>
|
| 194 |
)}
|
| 195 |
|