aboutsummaryrefslogtreecommitdiff
path: root/src/app/manga/components/downloadButton.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/manga/components/downloadButton.jsx')
-rw-r--r--src/app/manga/components/downloadButton.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/app/manga/components/downloadButton.jsx b/src/app/manga/components/downloadButton.jsx
new file mode 100644
index 0000000..0942dfb
--- /dev/null
+++ b/src/app/manga/components/downloadButton.jsx
@@ -0,0 +1,15 @@
+import { Button } from "@nextui-org/react";
+import Link from "next/link";
+
+const DownloadButton = async ({ id: id }) => {
+ return (
+ <Button
+ as={Link}
+ href={`https://manga-downloader-api.vercel.app/${id}`}
+ >
+ Download
+ </Button>
+ );
+};
+
+export default DownloadButton;