import Link from "next/link" import { BookOpen, Eye, Star } from "lucide-react" import { formatViews } from "@/lib/utils" import { getNovelStatusBadgeClass } from "@/lib/novel-status" export interface CardNovel { id: string slug: string title: string authorName: string coverColor: string | null coverUrl?: string | null rating: number views: number totalChapters: number status: string } interface NovelCardProps { novel: CardNovel variant?: "default" | "compact" } export function NovelCard({ novel, variant = "default" }: NovelCardProps) { if (variant === "compact") { return (
{novel.authorName}
{novel.authorName}