import Link from 'next/link'; import { requestPasswordReset } from '../actions'; export default function ForgotPasswordPage({ searchParams }: { searchParams: { sent?: string } }) { const sent = searchParams.sent === '1'; return (

Reset your password

{sent ? (

If that email has an account, we've sent a link to reset the password. It expires in 1 hour.

) : ( <>

Enter your email and we'll send you a link to reset your password.

)}

Back to log in

); }