From f801f8f422954b884a6541321dba0669ee9d6173 Mon Sep 17 00:00:00 2001 From: Factiven Date: Sun, 22 Oct 2023 19:43:17 +0700 Subject: Update v4.2.0 (#93) --- components/manga/info/topSection.js | 107 ------------------------------------ 1 file changed, 107 deletions(-) delete mode 100644 components/manga/info/topSection.js (limited to 'components/manga/info/topSection.js') diff --git a/components/manga/info/topSection.js b/components/manga/info/topSection.js deleted file mode 100644 index 45d5f11..0000000 --- a/components/manga/info/topSection.js +++ /dev/null @@ -1,107 +0,0 @@ -import Image from "next/image"; -import { BookOpenIcon } from "@heroicons/react/24/outline"; -import AniList from "../../media/aniList"; -import Link from "next/link"; -import TopMobile from "./mobile/topMobile"; -import MobileButton from "./mobile/mobileButton"; - -export default function TopSection({ info, firstEp, setCookie }) { - const slicedGenre = info.genres?.slice(0, 3); - - function saveManga() { - localStorage.setItem( - "manga", - JSON.stringify({ manga: firstEp, data: info }) - ); - - setCookie(null, "manga", info.id, { - maxAge: 24 * 60 * 60, - path: "/", - }); - } - - return ( -
- -
- cover image - -
- - -
- -
- -
-
-
-
-

- {info.title?.romaji || info.title?.english || info.title?.native} -

- - {slicedGenre && - slicedGenre.map((genre, index) => { - return ( -
- {genre} - {index < slicedGenre?.length - 1 && ( - - )} -
- ); - })} -
-
- - - -
- {/* Description */} -
-

-

-
-
-
-
- ); -} -- cgit v1.2.3