)
if (error) return
return null
}
return (
Email VerificationVerifying your email address...{renderContent()}
{isVerified && (
)}
)
}
const CheckEmailPrompt = () => {
const {
mutate: sendVerificationEmailMutation,
isPending,
isError,
isSuccess,
} = useMutation({
mutationFn: () =>
httpBrowserClient.post(
ApiEndpoints.auth.sendEmailVerificationEmail(),
{}
),
})
return (
Check your email
We've sent you a verification email. Please check your inbox and click
the link to verify your account.
{isSuccess && (
Email Sent
A new verification email has been sent to your inbox
)}
{isError && (
Error
Failed to resend verification email
)}