'use client'; import useSWR from "swr"; const fetcher = async (url:any) => await fetch(url).then((res) => res.json()); export const EmpireStats = () => { const {data} = useSWR('/api/empires',fetcher); let ret; if (data) { ret = (