function Stat({ n, unit, label, decimals = 0 }) { const [ref, shown] = useReveal(); const val = useCountUp(n, 1400, shown); const display = decimals ? val.toFixed(decimals) : Math.round(val); return (
{display}{unit}
{label}
); } function Stats() { return (
By the numbers

Five years. Thousands of journeys. One platform.

); } window.Stats = Stats;