diff --git a/web/src/components/button/DownloadVideoButton.tsx b/web/src/components/button/DownloadVideoButton.tsx index 5ea1f8465..7545217bf 100644 --- a/web/src/components/button/DownloadVideoButton.tsx +++ b/web/src/components/button/DownloadVideoButton.tsx @@ -4,17 +4,20 @@ import { toast } from "sonner"; import ActivityIndicator from "../indicators/activity-indicator"; import { FaDownload } from "react-icons/fa"; import { formatUnixTimestampToDateTime } from "@/utils/dateUtil"; +import { cn } from "@/lib/utils"; type DownloadVideoButtonProps = { source: string; camera: string; startTime: number; + className?: string; }; export function DownloadVideoButton({ source, camera, startTime, + className, }: DownloadVideoButtonProps) { const [isDownloading, setIsDownloading] = useState(false); @@ -32,13 +35,6 @@ export function DownloadVideoButton({ }); }; - const handleDownloadEnd = () => { - setIsDownloading(false); - toast.success("Download completed successfully.", { - position: "top-center", - }); - }; - return (
{
- onImgLoad();
- }}
- />
+
{
+ onImgLoad();
+ }}
+ />
+