Files
buzz-sheet/app/check-email/page.tsx
T
2026-10-03 00:56:31 +07:00

16 lines
724 B
TypeScript

import { connection } from "next/server";
import { SiteHeader } from "@/components/public/site-header";
import { RegistrationOtpForm } from "@/components/auth/registration-otp-form";
import { safeAuthReturnPath } from "@/lib/auth/return-path";
export const instant = false;
export default async function CheckEmailPage({ searchParams }: PageProps<"/check-email">) {
await connection();
const { email, next, setup } = await searchParams;
return <div className="min-h-svh"><SiteHeader /><main className="grid min-h-[calc(100svh-4rem)] place-items-center p-4">
<RegistrationOtpForm email={typeof email === "string" ? email : ""}
nextPath={safeAuthReturnPath(next)} setup={setup === "1"} />
</main></div>;
}