import Link from "next/link"; import { HelpCircle } from "lucide-react"; import { notFound } from "next/navigation"; import { deleteHelpQuestion, updateHelpQuestion } from "@/actions/admin-help"; import { prisma } from "@/lib/prisma"; export const dynamic = "force-dynamic"; export default async function EditHelpQuestion({ params, searchParams, }: { params: Promise<{ id: string }>; searchParams: Promise<{ error?: string }>; }) { const { id } = await params; const { error } = await searchParams; let entry: Awaited> = null; try { entry = await prisma.websiteHelpCenterCategories.findUnique({ where: { id: BigInt(id) }, }); } catch { notFound(); } if (!entry) notFound(); return (

Edit help-center entry

← Help Center

{error ? (

Error: {error}

) : null}