Add player bug reports and profile identity features
This commit is contained in:
22
app/support/[id]/page.tsx
Normal file
22
app/support/[id]/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { notFound } from "next/navigation";
|
||||
import { z } from "zod";
|
||||
import { Header, Footer } from "@/components/Shell";
|
||||
import { SupportConversation } from "@/components/Support";
|
||||
export const metadata = { robots: { index: false, follow: false } };
|
||||
export default async function Report({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ id: string }>;
|
||||
}) {
|
||||
const { id } = await params;
|
||||
if (!z.string().uuid().safeParse(id).success) notFound();
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<main className="section page-content">
|
||||
<SupportConversation key={id} id={id} />
|
||||
</main>
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user