"use client" import Link from "next/link" import { useState } from "react" export default function PasswordResetPage() { const [email, setEmail] = useState("") const [sent, setSent] = useState(false) const [error, setError] = useState("") const [loading, setLoading] = useState(false) async function handleSubmit(e: React.FormEvent) { e.preventDefault() setLoading(true) setError("") try { setSent(true) } catch (err) { console.error("Password reset error:", err) setError("An unexpected error occurred") } finally { setLoading(false) } } if (sent) { return (

Check your email

If an account exists with that email, a password reset link will be sent.

Return to sign in
) } return (

Reset Password

Enter your email address and we will send you a link to reset your password.

{error && (
{error}
)}
setEmail(e.target.value)} className="appearance-none rounded-md relative block w-full px-3 py-2 border border-gray-300 placeholder-gray-500 text-gray-900 focus:outline-none focus:ring-green-500 focus:border-green-500 focus:z-10 sm:text-sm" placeholder="Email address" />
Remember your password? Sign in
) }