import { useEffect, useState } from 'react' import useMangoStore from '../stores/useMangoStore' import OpenOrdersTable from './OpenOrdersTable' import BalancesTable from './BalancesTable' import PositionsTable from './PerpPositionsTable' import TradeHistoryTable from './TradeHistoryTable' import ManualRefresh from './ManualRefresh' import Tabs from './Tabs' import FeeDiscountsTable from './FeeDiscountsTable' import { marketConfigSelector } from '../stores/selectors' const TABS = [ 'Balances', 'Orders', 'Positions', 'Trade History', 'Fee Discount', ] const UserInfoTabs = ({ activeTab, setActiveTab }) => { const totalOpenOrders = useMangoStore( (s) => s.selectedMangoAccount.totalOpenOrders ) const totalOpenPerpPositions = useMangoStore( (s) => s.selectedMangoAccount.totalOpenPerpPositions ) const mangoAccount = useMangoStore((s) => s.selectedMangoAccount.current) const handleTabChange = (tabName) => { setActiveTab(tabName) } return (