import { fmt } from "@/lib/data"; import HourBar from "./HourBar"; export interface TopicBarsProps { items: ReadonlyArray<{ label: string; vi?: string; hours: number }>; } /** Horizontal topic-distribution bars (widths relative to the largest topic). */ export default function TopicBars({ items }: TopicBarsProps) { const max = Math.max(...items.map((t) => t.hours)); const total = items.reduce((sum, t) => sum + t.hours, 0); return ( ); }