// Dependencies import { useTranslation } from 'next-i18next' // Hooks import { useAccount } from 'shared/hooks/use-account.mjs' import { useBackend } from 'shared/hooks/use-backend.mjs' // Components import Link from 'next/link' import Markdown from 'react-markdown' import { HeartIcon } from 'shared/components/icons.mjs' import { ModalWrapper } from 'shared/components/wrappers/modal.mjs' export const ns = ['account'] const Avatar = ({ img, app = false }) => (
app.setModal( ) : null } className={app ? 'hover:cursor-zoom-in' : 'hover:cursor-zoom-out'} />
) export const AccountProfile = ({ app }) => { const { account, setAccount, token } = useAccount() const { t } = useTranslation(ns) const toggleModal = () => { if (modal) setModal(false) else setModal() } if (!account) return null return (
{!account.patron ? ( ) : null}

{account.username}

{account.bio}
) }