import { prisma } from "@/prisma/prismaClient"; import CreateGameSystem from "./create"; import { GameSystemsClient } from "./client"; import Link from "next/link"; import { setCurrentGameSystem } from "@/actions/GameSystems/client"; import { auth } from "@/auth"; export default async function GameSystems() { const session = await auth(); session?.user?.id && (await setCurrentGameSystem(session.user.id)); const existingGameSystems = await prisma.gameSystem.findMany({ orderBy: { created: "asc", }, }); return (

Tabletop Commander

Game Systems

); }