import { getHeaders } from "@/utils/imageUtils"; import { ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, RectangleStackIcon, } from "@heroicons/react/24/outline"; import Image from "next/image"; import { useRouter } from "next/router"; import { useState } from "react"; export default function BottomBar({ id, prevChapter, nextChapter, currentPage, chapter, data, setSeekPage, setIsOpen, number, mangadexId, }) { const [openPage, setOpenPage] = useState(false); const router = useRouter(); return (
{`${currentPage}/${data?.length}`}
{openPage && (
{Array.isArray(data) ? ( data.map((x, index) => { const indx = index + 1; return (
setSeekPage(x.index)} > chapter image

Page {x.index + 1}

); }) ) : (
not found
)}
)}
); }