import '@/app/globals.css';
import { Game, GameGroup } from '@/types/stellaris';
import { GameView } from '@/components/gui/game-view';
import { generateUrl } from '@/components/server/fetchers';

export default async function Home() {
  const games = await fetch(generateUrl('/games')).then((res) => res.json())

  return (
    <main>
      <GameView games={games}/>
    </main>
  )
}
