// Dependencies import { useTranslation } from 'next-i18next' // Hooks import { useAccount } from 'shared/hooks/use-account.mjs' import { useBackend } from 'shared/hooks/use-backend.mjs' import { useLoadingStatus } from 'shared/hooks/use-loading-status.mjs' // Components import { BackToAccountButton } from './shared.mjs' import { Popout } from 'shared/components/popout/index.mjs' export const ns = ['account', 'status'] export const RemoveAccount = () => { // Hooks const { signOut } = useAccount() const backend = useBackend() const { t } = useTranslation(ns) const { setLoadingStatus, LoadingStatus } = useLoadingStatus() // Helper method to export account const removeAccount = async () => { setLoadingStatus([true, 'processingUpdate']) const result = await backend.removeAccount() if (result.success) { setLoadingStatus([true, 'nailedIt', true, true]) signOut() } else setLoadingStatus([true, 'backendError', true, false]) } return (

{t('noWayBack')}

) }