"use client"; import { toBeatCells, toSparkline } from "@/lib/pace/beatmap"; interface BeatMapProps { beatMap: number[]; } // 爽点节拍图(UX §6.4):beat_map(int 序列) → ▁▃▅ 柱状条。 // 渲染为定高柱(CSS height%),同时给文本 sparkline 作无障碍标签(a11y §10)。 // 静态高度,无动画 → 天然尊重 prefers-reduced-motion。 export function BeatMap({ beatMap }: BeatMapProps) { const cells = toBeatCells(beatMap); if (cells.length === 0) { return 无节拍数据; } const spark = toSparkline(beatMap); return (