import { Sticky } from "@/lib/sticky";
import { prisma } from "@/prisma/prismaClient";
export default async function GameSystem(
{ params: { id } }: { params: { id: string } },
) {
if (!id) throw "HOW DID YOU GET HERE?";
const gameSystem = await prisma.gameSystem.findFirst({
where: {
id,
},
select: {
id: true,
name: true,
schemas: {
select: {
name: true,
id: true,
publications: {
select: {
name: true,
id: true,
},
},
},
},
},
});
return (
<>
Game System
{gameSystem?.name}
{gameSystem?.schemas.map((schema) => (
- {schema.name}
))}
HELLO!
>
);
}