aboutsummaryrefslogtreecommitdiff
path: root/src/app/movies/components/descriptionTabs.jsx
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-05-25 20:17:13 +0530
committerreal-zephex <[email protected]>2024-05-25 20:17:13 +0530
commit1025fbb5a39ec9619a589b97863eb68ceb240dd0 (patch)
tree4e1c2ae3fd5201a01c81282329675e48d9358b93 /src/app/movies/components/descriptionTabs.jsx
parent🐛 fix(movie): add missing card component (diff)
downloaddramalama-1025fbb5a39ec9619a589b97863eb68ceb240dd0.tar.xz
dramalama-1025fbb5a39ec9619a589b97863eb68ceb240dd0.zip
🚀 feat(download): add download feature for movies
Diffstat (limited to 'src/app/movies/components/descriptionTabs.jsx')
-rw-r--r--src/app/movies/components/descriptionTabs.jsx23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/app/movies/components/descriptionTabs.jsx b/src/app/movies/components/descriptionTabs.jsx
index 2f5ca91..7eec2fb 100644
--- a/src/app/movies/components/descriptionTabs.jsx
+++ b/src/app/movies/components/descriptionTabs.jsx
@@ -1,6 +1,6 @@
"use client";
-import { Tabs, Tab, Card, CardBody, Link } from "@nextui-org/react";
+import { Tabs, Tab, Card, CardBody, Link, Button } from "@nextui-org/react";
import { FiThumbsUp } from "react-icons/fi";
import { TiStarFullOutline } from "react-icons/ti";
@@ -61,6 +61,27 @@ export default function DescriptionTabs({ data: data }) {
</CardBody>
</Card>
</Tab>
+ <Tab key="download" title="Download">
+ <Card>
+ <CardBody className={lexend.className}>
+ <h4 className="flex items-center">
+ <Link
+ href={`https://dl.vidsrc.vip/m/${data.id}`}
+ isExternal
+ >
+ <Button
+ color="warning"
+ size="sm"
+ className="ml-2"
+ title="Download is powered by 3rd party. Use it at your own risk."
+ >
+ Download
+ </Button>
+ </Link>
+ </h4>
+ </CardBody>
+ </Card>
+ </Tab>
</Tabs>
</div>
);