15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
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>
|
|
)
|
|
}
|