"use client"; import { motion } from "framer-motion"; import { COLORS, VizFrame } from "./common"; export type ArchEntry = { year: number; name: string; detail?: string; params?: string; }; export function ArchTimeline({ entries, width = 940, height = 320, }: { entries: ArchEntry[]; width?: number; height?: number; }) { const padX = 40; const padY = 40; const stepW = (width - padX * 2) / entries.length; return ( {entries.map((e, i) => { const x = padX + i * stepW + stepW / 2; const isUp = i % 2 === 0; const ey = isUp ? height / 2 - 80 : height / 2 + 60; return ( {e.year} {e.name} {e.detail ? ( {e.detail} ) : null} {e.params ? ( {e.params} ) : null} ); })} ); }