import styles from "../styles/popular.module.css"; import Image from "next/image"; import Link from "next/link"; export default async function RecentDramas() { const popular = await getPopular(); return (

Recently Released

{popular && popular.results.map((item, index) => (
Drama Poster

{item.title}

))}
); } async function getPopular() { const res = await fetch("https://dramacool-scraper.vercel.app/recent", { next: { revalidate: 86400 }, }); const data = await res.json(); return data; }