import Link from "next/link" import { Logo } from "@/components/shared/logo" import { resetPassword } from "@/app/actions/auth" 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

) }