import Link from "next/link"; type Chapter = { id: number; number: number; title: string; }; export function ChapterList({ chapters, mangaSlug, }: { chapters: Chapter[]; mangaSlug: string; }) { if (chapters.length === 0) { return (

No chapters available yet

); } return (
{chapters.map((ch) => (
#{ch.number} {ch.title}
))}
); }