"use client"; import { cn } from "@/lib/cn"; import type { ArtistTag } from "@/types/artist"; import type { SortKey } from "@/lib/mock-data"; export type TagFilter = ArtistTag | "all"; interface ArtistFiltersProps { tagFilter: TagFilter; onTagChange: (tag: TagFilter) => void; sort: SortKey; onSortChange: (sort: SortKey) => void; } const TAG_OPTIONS: { key: TagFilter; label: string }[] = [ { key: "all", label: "全部" }, { key: "rock", label: "摇滚" }, { key: "pop", label: "流行" }, { key: "chinese", label: "国风" }, { key: "hiphop", label: "嘻哈说唱" }, { key: "folk", label: "民谣治愈" }, { key: "jazz", label: "爵士" }, ]; const SORT_OPTIONS: { key: SortKey; label: string }[] = [ { key: "votes", label: "实时排名" }, { key: "no", label: "编号顺序" }, ]; export default function ArtistFilters({ tagFilter, onTagChange, sort, onSortChange, }: ArtistFiltersProps) { return (