import { router, useLocalSearchParams } from 'expo-router' import { CompanyLogo, FeaturedIcon, FormWrapper } from '@/components' import { Button, Center, Display, Row, Spacer, Text } from '@/design-system' import { useEffect, useForgotPasswordForm, useTranslation } from '@/hooks' import { showSuccessToast } from '@/utils' const navigateToLogin = () => { router.navigate('/sign-in') } export const ResetPasswordLinkSentScreen = () => { const { t } = useTranslation() const { email } = useLocalSearchParams<{ email?: string }>() const { isSubmitting, reset, submit } = useForgotPasswordForm({ onSuccess: () => { showSuccessToast({ description: 'Password link resend' }) }, }) useEffect(() => { if (email) { reset({ email }) } }, [email, reset]) return (
{t('reset_password_link_sent_screen.check_email')} {t('reset_password_link_sent_screen.we_sent_link')} {email} {t('reset_password_link_sent_screen.did_not_receive')}
) }