import React from "react"; import { fetchApi, handleResponse } from "./apiClient.tsx"; import useSWR from "swr"; import { eachDayOfInterval, endOfMonth, startOfMonth, subMonths } from "date-fns"; import { UTCDateMini } from "@date-fns/utc"; import { Counter } from "./Counter.tsx"; export function HomePage() { const globalStats = useSWR( ["stats", "GET", {}] as const, (args) => fetchApi(...args).then(handleResponse), { refreshInterval: 2_000 }, ); return (
Pixels painted
Images generated
Unique users