// @ts-nocheck import { Button, Intent } from '@blueprintjs/core'; import { x } from '@xstyled/emotion'; import AuthInsider from './AuthInsider'; import { AuthInsiderCard } from './_components'; import { AppToaster, Stack } from '@/components'; import { useAuthActions, useAuthUserVerifyEmail } from '@/hooks/state'; import { useAuthSignUpVerifyResendMail } from '@/hooks/query'; import { AuthContainer } from './AuthContainer'; import { useIsDarkMode } from '@/hooks/useDarkMode'; export default function RegisterVerify() { const { setLogout } = useAuthActions(); const { mutateAsync: resendSignUpVerifyMail, isLoading } = useAuthSignUpVerifyResendMail(); const emailAddress = useAuthUserVerifyEmail(); const isDarkMode = useIsDarkMode(); const handleResendMailBtnClick = () => { resendSignUpVerifyMail() .then(() => { AppToaster.show({ intent: Intent.SUCCESS, message: 'The verification mail has sent successfully.', }); }) .catch(() => { AppToaster.show({ intent: Intent.DANGER, message: 'Something went wrong.', }); }); }; const handleSignOutBtnClick = () => { setLogout(); }; return ( Please verify your email We sent an email to {emailAddress} Click the link inside to get started. ); }