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

#{index + 1} Spotlight

{getSafeTitle(item.title, language, item.japanese_title)}

{/* Mobile Buttons */}
Watch Now Details
{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}

{/* Desktop Buttons */}
Watch Now Details
); } export default Banner;