reset-password.tsx23 lines · main
1import { ResetPasswordForm } from '@/components/interfaces/SignIn/ResetPasswordForm'
2import ForgotPasswordLayout from '@/components/layouts/SignInLayout/ForgotPasswordLayout'
3import { withAuth } from '@/hooks/misc/withAuth'
4import type { NextPageWithLayout } from '@/types'
5
6const ResetPasswordPage: NextPageWithLayout = () => {
7 return (
8 <div className="flex flex-col gap-4">
9 <ResetPasswordForm />
10 </div>
11 )
12}
13
14ResetPasswordPage.getLayout = (page) => (
15 <ForgotPasswordLayout
16 heading="Change your password"
17 subheading="Welcome back! Choose a new strong password and save it to proceed"
18 >
19 {page}
20 </ForgotPasswordLayout>
21)
22
23export default withAuth(ResetPasswordPage)