diff --git a/surfsense_web/components/report-panel/report-panel.tsx b/surfsense_web/components/report-panel/report-panel.tsx index 0d64da1bf..8215b6140 100644 --- a/surfsense_web/components/report-panel/report-panel.tsx +++ b/surfsense_web/components/report-panel/report-panel.tsx @@ -5,9 +5,7 @@ import { CheckIcon, ChevronDownIcon, ClipboardIcon, - DownloadIcon, FileTextIcon, - Loader2Icon, XIcon, } from "lucide-react"; import { useCallback, useEffect, useRef, useState } from "react"; @@ -17,6 +15,7 @@ import { reportPanelAtom, } from "@/atoms/chat/report-panel.atom"; import { Button } from "@/components/ui/button"; +import { Spinner } from "@/components/ui/spinner"; import { Drawer, DrawerContent, @@ -280,7 +279,6 @@ function ReportPanelContent({ handleExport("md")}> - Download Markdown {/* PDF/DOCX export requires server-side conversion via authenticated endpoint. @@ -291,10 +289,8 @@ function ReportPanelContent({ onClick={() => handleExport("pdf")} disabled={exporting !== null} > - {exporting === "pdf" ? ( - - ) : ( - + {exporting === "pdf" && ( + )} Download PDF @@ -302,10 +298,8 @@ function ReportPanelContent({ onClick={() => handleExport("docx")} disabled={exporting !== null} > - {exporting === "docx" ? ( - - ) : ( - + {exporting === "docx" && ( + )} Download DOCX