import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faPlay, faClosedCaptioning, faMicrophone, faCalendar, faClock, } from "@fortawesome/free-solid-svg-icons"; import { FaChevronRight } from "react-icons/fa"; import { Link } from "react-router-dom"; import { useLanguage } from "@/src/context/LanguageContext"; import "./Banner.css"; function Banner({ item, index }) { const { language } = useLanguage(); return (
{item.title}

#{index + 1} Spotlight

{language === "EN" ? item.title : item.japanese_title}

{item.tvInfo && ( <> {item.tvInfo.showType && (

{item.tvInfo.showType}

)} {item.tvInfo.duration && (

{item.tvInfo.duration}

)} {item.tvInfo.releaseDate && (

{item.tvInfo.releaseDate}

)}
{item.tvInfo.quality && (
{item.tvInfo.quality}
)}
{item.tvInfo.episodeInfo?.sub && (

{item.tvInfo.episodeInfo.sub}

)} {item.tvInfo.episodeInfo?.dub && (

{item.tvInfo.episodeInfo.dub}

)}
)}

{item.description}

Detail

); } export default Banner;