import { toUiDecimals } from '@blockworks-foundation/mango-v4' import type { NextPage } from 'next' import { useTranslation } from 'next-i18next' import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import { useState } from 'react' import AccountActions from '../components/account/AccountActions' import DepositModal from '../components/modals/DepositModal' import WithdrawModal from '../components/modals/WithdrawModal' import TokenList from '../components/TokenList' import mangoStore from '../store/state' import { formatDecimal } from '../utils/numbers' import FlipNumbers from 'react-flip-numbers' export async function getStaticProps({ locale }: { locale: string }) { return { props: { ...(await serverSideTranslations(locale, ['common', 'close-account'])), }, } } const Index: NextPage = () => { const { t } = useTranslation('common') const mangoAccount = mangoStore((s) => s.mangoAccount) const [showDepositModal, setShowDepositModal] = useState(false) const [showWithdrawModal, setShowWithdrawModal] = useState(false) return ( <>
{t('account-value')}