import React from 'react' function formatNumber(value) { return new Intl.NumberFormat('en', { notation: value >= 1000 ? 'compact' : 'standard', maximumFractionDigits: 1 }).format(Number(value || 0)) } export default function WorldRecapStatsGrid({ stats }) { const items = Array.isArray(stats?.items) ? stats.items : [] if (items.length === 0) { return null } return (

Key stats

A compact snapshot of how the edition performed before it settled into the archive.

{stats?.captured_at ?
{stats.source === 'snapshot' ? 'Snapshot captured' : 'Live draft metrics'} {new Date(stats.captured_at).toLocaleDateString()}
: null}
{items.map((item) => (
{item.label}
{formatNumber(item.value)}
{item.description ?

{item.description}

: null}
))}
) }