diff --git a/web/src/components/chat_search/TextView.tsx b/web/src/components/chat_search/TextView.tsx index e9026d6b2ff..f7501869b58 100644 --- a/web/src/components/chat_search/TextView.tsx +++ b/web/src/components/chat_search/TextView.tsx @@ -1,4 +1,90 @@ -// "use client"; +"use client"; + +import { useState } from "react"; +import { Button } from "@/components/ui/button"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog"; +import { Download, Printer, ZoomIn, ZoomOut } from "lucide-react"; + +interface TextViewProps { + fileUrl?: string; + fileName?: string; + isOpen: boolean; + onClose: () => void; +} + +export default function TextView({ + fileUrl = "/sample.pdf", + fileName = "Document.pdf", + isOpen, + onClose, +}: TextViewProps) { + const [zoom, setZoom] = useState(100); + + const handleZoomIn = () => setZoom((prev) => Math.min(prev + 25, 200)); + const handleZoomOut = () => setZoom((prev) => Math.max(prev - 25, 50)); + + return ( + + + + + {fileName} + +
+ + {zoom}% + + + +
+
+
+
+