Skip to content

Commit

Permalink
added download button
Browse files Browse the repository at this point in the history
  • Loading branch information
lharries committed Jun 17, 2024
1 parent 8e0f2b1 commit cc885c5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/sound-effects/video-to-sfx/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const HoverOverlay = ({ className }: { className?: string }) => {
};
import { convertVideoToSFX } from "@/lib/videoToSFX";
import { useMutation } from "@tanstack/react-query";
import { DownloadIcon, LoaderCircle, LoaderPinwheel } from "lucide-react";
import { DownloadIcon, LoaderCircle } from "lucide-react";
import { Button } from "@/components/ui/button";
import { mergeAndDownload } from "@/lib/mergeAndDownload";

Expand Down Expand Up @@ -289,7 +289,16 @@ const Home = observer(() => {
onPause={() => orchestrator.stop()}
player={player}
active={orchestrator.activeIndex === index}
<<<<<<< HEAD
onDownload={async () => {
=======
/>
<Button
variant="outline"
size="icon"
disabled={isDownloading[index]}
onClick={async () => {
>>>>>>> efdb800 (added download button)
const url = orchestrator.getAudioUrl(index);
if (!file || !url) {
window.alert("Error downloading");
Expand Down

0 comments on commit cc885c5

Please sign in to comment.