import type { Metadata } from "next" import Link from "next/link" import { Logo } from "@/components/shared/logo" import { TurnstileWidget } from "@/components/shared/turnstile-widget" import { resetPassword } from "@/app/actions/auth" export const metadata: Metadata = { title: "Reset password", robots: { index: false, follow: true }, } export default async function ForgotPasswordPage({ searchParams, }: { searchParams: Promise<{ error?: string; success?: string }> }) { const params = await searchParams const error = params.error const success = params.success return (

Reset your password

Enter your email and we'll send a reset link

{error && (
{decodeURIComponent(error)}
)} {success === "email-sent" && (
Check your email — reset link sent.
)}

Remember your password?{" "} Back to sign in

) }