import Link from "next/link" import { Eye } from "lucide-react" import type { Chapter } from "@/lib/types" import { formatViews } from "@/lib/data" interface ChapterListProps { chapters: Chapter[] novelSlug: string } export function ChapterList({ chapters, novelSlug }: ChapterListProps) { return (
{chapters.map((chapter) => (
Ch. {chapter.number} {chapter.title}
{formatViews(chapter.views)} {chapter.createdAt}
))}
) }