import React, { useState } from 'react'; import { useStoreState } from 'easy-peasy'; import { ApplicationStore } from '@/state'; import SetupTwoFactorModal from '@/components/dashboard/forms/SetupTwoFactorModal'; export default () => { const user = useStoreState((state: ApplicationStore) => state.user.data!); const [visible, setVisible] = useState(false); return user.useTotp ?

Two-factor authentication is currently enabled on your account.

:
{visible && setVisible(false)}/>}

You do not currently have two-factor authentication enabled on your account. Click the button below to begin configuring it.

; };