import Link from "next/link" import { BookOpen, Eye, Star } from "lucide-react" import type { Novel } from "@/lib/types" import { formatViews } from "@/lib/data" interface NovelCardProps { novel: Novel variant?: "default" | "compact" } export function NovelCard({ novel, variant = "default" }: NovelCardProps) { if (variant === "compact") { return (

{novel.title}

{novel.author}

{novel.rating} Ch. {novel.totalChapters}
) } return (
{novel.status === "Đang ra" && ( Đang ra )}

{novel.title}

{novel.author}

{novel.rating} {formatViews(novel.views)} Ch. {novel.totalChapters}
) }