import Game from '@/components/Game'; import { getOrCreateSpecialPuzzle } from '@/lib/dailyPuzzle'; import Link from 'next/link'; import { PrismaClient } from '@prisma/client'; export const dynamic = 'force-dynamic'; const prisma = new PrismaClient(); interface PageProps { params: Promise<{ name: string }>; } export default async function SpecialPage({ params }: PageProps) { const { name } = await params; const decodedName = decodeURIComponent(name); const dailyPuzzle = await getOrCreateSpecialPuzzle(decodedName); const genres = await prisma.genre.findMany({ orderBy: { name: 'asc' } }); const specials = await prisma.special.findMany({ orderBy: { name: 'asc' } }); return ( <>