"use client"; import Link from "next/link"; import { ChevronRight, Trophy } from "lucide-react"; import type { Artist } from "@/types/artist"; import { cn } from "@/lib/cn"; import ArtistPortrait from "./cards/ArtistPortrait"; interface Top12BarProps { artists: Artist[]; /** 是否显示头部标题 */ showHeader?: boolean; } function formatVotes(v: number): string { if (v >= 10_000) return `${(v / 10_000).toFixed(1)}W 票`; return `${v.toLocaleString()} 票`; } export default function Top12Bar({ artists, showHeader = true }: Top12BarProps) { // Top12 出道位 只看「真正有票」的人 —— 0 票时不靠编号兜底占位 const top12 = artists.filter((a) => a.votes > 0).slice(0, 12); return (
Awaiting Votes
出道位尚未产生 · 等你为 ta 投下第一票