import Link from 'next/link'; import { redirect } from 'next/navigation'; import { Trans } from '@lingui/macro'; import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server'; 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) { setupI18nSSR(); 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

); }