// __SDEFILE__ - This file is a dependency for the stand-alone environment import { useTranslation } from 'next-i18next' import { useAccount } from 'shared/hooks/use-account.mjs' import { useEffect, useState } from 'react' import { Joost } from 'shared/components/joost.mjs' export const ns = ['patrons'] export const Plea = () => { const { t } = useTranslation(ns) const { account } = useAccount() const [user, setUser] = useState(false) useEffect(() => { // Do this here to avoid hydration issues if (account.username) setUser(account.username) }, [account.username]) return (

{user ? t('hiUsername', { username: user }) : t('hiFriend')} 👋

{[1, 2, 3, 4, 5].map((i) => (

{t(`patrons:plead${i}`)}

))}
) }