blob: 54c05baadb86211e0650c8447a90085c6f0c64d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
"use client";
import { Tabs, Tab, Card, CardBody } from "@nextui-org/react";
import { lexend, atkinson } from "../../../../config/fonts";
export default function DescriptionTabs({ data: data }) {
return (
<div className="flex w-full flex-col">
<Tabs aria-label="Options" className={lexend.className}>
<Tab key="description" title="Description">
<Card>
<CardBody className={atkinson.className}>
{data.description || "No description found"}
</CardBody>
</Card>
</Tab>
<Tab key="episodes" title="Details">
<Card>
<CardBody className={atkinson.className}>
<h4>
<strong>Episodes</strong>:{" "}
<span>{data.episodes.length}</span>
</h4>
<h4>
<strong>Duration</strong>:{" "}
<span>{data.duration || "not found"}</span>
</h4>
<h4>
<strong>Release Year</strong>:{" "}
<span>{data.releaseDate}</span>
</h4>
<h4>
<strong>Other Names</strong>:{" "}
{data.otherNames &&
data.otherNames.map((item, index) => (
<span key={index}>
{item}
{index <
data.otherNames.length - 1 &&
", "}
</span>
))}
</h4>
</CardBody>
</Card>
</Tab>
</Tabs>
</div>
);
}
|