16 lines
729 B
TypeScript
16 lines
729 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<"/auth/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>;
|
|
}
|