import { useLanguage } from "@/src/context/LanguageContext";
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faClosedCaptioning,
faMicrophone,
faFire
} from "@fortawesome/free-solid-svg-icons";
const Trending = ({ trending, className }) => {
const { language } = useLanguage();
return (
Trending Now
{trending &&
trending.map((item, index) => (
window.scrollTo({ top: 0, behavior: "smooth" })}
className="block"
>
#{index + 1}
{language === "EN" ? item.title : item.japanese_title}
{item.tvInfo?.sub && (
{item.tvInfo.sub}
)}
{item.tvInfo?.dub && (
{item.tvInfo.dub}
)}
{item.tvInfo?.showType && (
{item.tvInfo.showType}
)}
))}
);
};
export default Trending;