import React from "react"; import { fetchApi, handleResponse } from "./apiClient.ts"; import useSWR from "swr"; import { Counter } from "./Counter.tsx"; export function StatsPage() { const getGlobalStats = useSWR( ["/stats", {}] as const, (args) => fetchApi(...args).then(handleResponse), { refreshInterval: 2_000 }, ); return (

Pixelsteps diffused

Pixels painted

Steps processed

Images generated

Unique users

); }