import { useState } from 'react' import TradeHistoryTable from '../TradeHistoryTable' import { useTranslation } from 'next-i18next' // const historyViews = ['Trades', 'Deposits', 'Withdrawals', 'Liquidations'] export default function AccountHistory() { const { t } = useTranslation('common') const [view] = useState('Trades') return ( <>
{t('trade-history')}
{/* Todo: add this back when the data is available */} {/*
{historyViews.map((section) => (
setView(section)} key={section as string} > {section}
))}
*/} ) } const ViewContent = ({ view }) => { const { t } = useTranslation('common') switch (view) { case 'Trades': return case 'Deposits': return
{t('deposits')}
case 'Withdrawals': return
{t('withdrawals')}
case 'Liquidations': return
{t('liquidations')}
default: return } }