import { notFound } from "next/navigation"; import { prisma } from "@/lib/prisma"; import AlertForm from "@/components/admin/alert-form"; export default async function EditAlertPage({ params, }: { params: Promise<{ id: string }>; }) { const { id } = await params; const alert = await prisma.seasonAlert.findUnique({ where: { id } }); if (!alert) notFound(); return ( ); }