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.author}
{novel.author}