import { HeartIcon } from "@heroicons/react/20/solid"; import { TvIcon, ArrowTrendingUpIcon, RectangleStackIcon, } from "@heroicons/react/24/outline"; export default function DetailTop({ info, statuses, handleOpen, loading }) { return (

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

{info?.genres ?.slice(0, info?.genres?.length > 3 ? info?.genres?.length : 3) .map((item, index) => ( {item} ))}
{info && (
)}
{info && info.status !== "NOT_YET_RELEASED" ? ( <>

{info?.type}

{info?.averageScore ? `${info?.averageScore}%` : "N/A"}

{info?.episodes ? (

{info?.episodes} Episodes

) : (

N/A

)}
) : (
{info && "Not Yet Released"}
)}
); }