import Link from 'next/link';
import type { IndexRow } from '@/lib/queries/indices';
import { fmtNum, cn } from '@/lib/format';
import { Delta } from '@/components/ui/primitives';
/** Live tape (§163): marquee of indices; indices without a published value show their build status. */
export function IndexTape({ indices, className }: { indices: IndexRow[]; className?: string }) {
if (!indices.length) return null;
const items = indices.map((i) => (
{i.ticker}
{i.latest ? (
<>
{fmtNum(i.latest.value, { digits: 2 })}