// Live transaction feed widget — rows stream in top to bottom with decision pills. function LiveFeed({ rows: initialRows, interval = 1800, max = 8, compact = false }) { const pool = React.useMemo(() => initialRows || [ { id: 'pay_01K5Z0QXM3', client: 'inxy_main', amt: '4,820', ccy: 'USDT', score: 92, dec: 'BLOCK', reason: 'IP blocklist · velocity' }, { id: 'pay_01K5Z0PN7C', client: 'inxy_main', amt: '180', ccy: 'USDT', score: 8, dec: 'APPROVE', reason: 'known IP · in hours' }, { id: 'pay_01K5Z0P4BX', client: 'acme_eu', amt: '12,500', ccy: 'USDT', score: 64, dec: 'REVIEW', reason: 'new destination' }, { id: 'pay_01K5Z0NNF9', client: 'acme_eu', amt: '280', ccy: 'EUR', score: 4, dec: 'APPROVE', reason: 'whitelisted' }, { id: 'pay_01K5Z0N2AA', client: 'lumen_labs', amt: '940', ccy: 'USDT', score: 88, dec: 'BLOCK', reason: 'sanctioned country' }, { id: 'pay_01K5Z0MDLR', client: 'inxy_main', amt: '72', ccy: 'USDT', score: 23, dec: 'APPROVE', reason: 'low risk' }, { id: 'pay_01K5Z0LY17', client: 'nimbus_pay', amt: '26,800', ccy: 'USDT', score: 71, dec: 'REVIEW', reason: 'amount > 2× baseline' }, { id: 'pay_01K5Z0KC7E', client: 'inxy_main', amt: '650', ccy: 'USDT', score: 94, dec: 'BLOCK', reason: 'IP blocklist' }, { id: 'pay_01K5Z0K019', client: 'acme_eu', amt: '9,200', ccy: 'USDT', score: 58, dec: 'REVIEW', reason: 'anonymizer' }, { id: 'pay_01K5Z0J4ZZ', client: 'nimbus_pay', amt: '120', ccy: 'USDT', score: 34, dec: 'APPROVE', reason: 'familiar pattern' }, ], [initialRows]); const [rows, setRows] = React.useState(() => pool.slice(0, max).map((r, i) => ({ ...r, _k: i, _age: i }))); const [seed, setSeed] = React.useState(max); React.useEffect(() => { const t = setInterval(() => { setSeed(s => s + 1); const next = pool[seed % pool.length]; setRows(prev => [{ ...next, _k: seed + 10000, _age: 0 }, ...prev.slice(0, max - 1)].map((r, i) => ({ ...r, _age: i }))); }, interval); return () => clearInterval(t); }, [seed, pool, interval, max]); const now = () => { const d = new Date(); return d.toTimeString().slice(0, 8); }; return (