'use client'; import { Display } from '@/components/display'; import useGlobalStore from '@/config/use-global'; import { Card, CardContent } from '@workspace/airo-ui/components/card'; import { useTranslations } from 'next-intl'; import CopyShortenedLink from '@/components/CopyShortenedLink/CopyShortenedLink'; import Recharge from '@/components/subscribe/recharge'; import Link from 'next/link'; import Table from './components/Table/Table'; import WalletDialog from './components/WalletDialog/WalletDialog'; import WhithdrawDialog from './components/Withdraw/WithdrawDialog'; export default function Page() { const t = useTranslations('wallet'); const dashboardT = useTranslations('dashboard'); const { user } = useGlobalStore(); const totalAssets = (user?.balance || 0) + (user?.commission || 0) + (user?.gift_amount || 0); return ( <>

{t('assetOverview')}

{t('totalAssets')}

{t('accountBalance')}

{t('giftAmount')}

{t('commission')}

{t('referralCode')} {t('referralDetails')}

{user?.refer_code}

); }