import Link from 'next/link'; import { redirect } from 'next/navigation'; import { getResetTokenValidity } from '@documenso/lib/server-only/user/get-reset-token-validity'; import { ResetPasswordForm } from '~/components/forms/reset-password'; type ResetPasswordPageProps = { params: { token: string; }; }; export default async function ResetPasswordPage({ params: { token } }: ResetPasswordPageProps) { const isValid = await getResetTokenValidity({ token }); if (!isValid) { redirect('/reset-password'); } return (

Reset Password

Please choose your new password

Don't have an account?{' '} Sign up

); }