Files
buzz-sheet/app/auth/forgot-password/page.tsx
T

15 lines
650 B
TypeScript

import { SiteHeader } from "@/components/public/site-header";
import { EmailActionForm } from "@/components/auth/email-action-form";
import { connection } from "next/server";
import { safeAuthReturnPath } from "@/lib/auth/return-path";
export const instant = false;
export default async function ForgotPasswordPage({ searchParams }: PageProps<"/auth/forgot-password">) {
await connection();
const { next } = await searchParams;
return <div className="min-h-svh"><SiteHeader /><main className="grid min-h-[calc(100svh-4rem)] place-items-center p-4">
<EmailActionForm mode="forgot" nextPath={safeAuthReturnPath(next)} />
</main></div>;
}