/** * Miniature analytics panel with a line chart + 3 stat tiles. * Shown alongside the dashboard feature spotlight. SVG rendered * inline so there's no image to load. */ export function AnalyticsMock() { // Pre-sampled line data so the curve looks "realistic" without // being random (we want the same pleasing shape on every render). const incoming = [4, 6, 3, 7, 9, 6, 11, 14, 10, 13, 16, 18, 15, 22] const outgoing = [3, 5, 2, 6, 7, 5, 9, 12, 9, 11, 14, 15, 13, 19] const VB_W = 320 const VB_H = 120 const PAD = { top: 8, right: 10, bottom: 10, left: 24 } const chartW = VB_W - PAD.left - PAD.right const chartH = VB_H - PAD.top - PAD.bottom const maxY = Math.max(...incoming, ...outgoing) const stepX = chartW / (incoming.length - 1) const y = (v: number) => PAD.top + chartH - (v / maxY) * chartH const x = (i: number) => PAD.left + i * stepX const path = (arr: number[]) => arr.map((v, i) => `${i === 0 ? 'M' : 'L'}${x(i)},${y(v)}`).join(' ') return (