diff options
| author | real-zephex <[email protected]> | 2024-06-12 00:15:58 +0530 |
|---|---|---|
| committer | real-zephex <[email protected]> | 2024-06-12 00:15:58 +0530 |
| commit | 8335a9661f8f553b5e8d894fb2e167184eca09bb (patch) | |
| tree | 3b14b44a6f38f1c93c981bb344a0e79661c4667f /src/app/manga/components/downloadButton.jsx | |
| parent | Merge pull request #44 from real-zephex/dependabot/npm_and_yarn/eslint-9.4.0 (diff) | |
| download | dramalama-8335a9661f8f553b5e8d894fb2e167184eca09bb.tar.xz dramalama-8335a9661f8f553b5e8d894fb2e167184eca09bb.zip | |
🚀 feat(download): implement direct manga downloads
Diffstat (limited to 'src/app/manga/components/downloadButton.jsx')
| -rw-r--r-- | src/app/manga/components/downloadButton.jsx | 15 |
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; |