import { useEffect, useState } from 'react' import useMangoStore from '../stores/useMangoStore' import { useOpenOrders } from '../hooks/useOpenOrders' // import usePerpPositions from '../hooks/usePerpPositions' import OpenOrdersTable from './OpenOrdersTable' import BalancesTable from './BalancesTable' import PositionsTable from './PerpPositionsTable' import TradeHistoryTable from './TradeHistoryTable' // import FeeDiscountsTable from './FeeDiscountsTable' import ManualRefresh from './ManualRefresh' import Tabs from './Tabs' const TABS = [ 'Balances', 'Orders', 'Positions', // 'Fees', 'Trade History', ] const UserInfoTabs = ({ activeTab, setActiveTab }) => { const openOrders = useOpenOrders() // const perpPositions = usePerpPositions() const connected = useMangoStore((s) => s.connection.current) const mangoAccount = useMangoStore((s) => s.selectedMangoAccount.current) const handleTabChange = (tabName) => { setActiveTab(tabName) } return (