23 lines
612 B
TypeScript
23 lines
612 B
TypeScript
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 />
|
|
</>
|
|
);
|
|
}
|