import { useEffect, useState } from 'react' import styled from '@emotion/styled' import useMangoStore from '../stores/useMangoStore' import { useOpenOrders } from '../hooks/useOpenOrders' // import usePerpPositions from '../hooks/usePerpPositions' import FloatingElement from './FloatingElement' import OpenOrdersTable from './OpenOrdersTable' import BalancesTable from './BalancesTable' import PositionsTable from './PerpPositionsTable' import TradeHistoryTable from './TradeHistoryTable' // import FeeDiscountsTable from './FeeDiscountsTable' const TABS = [ 'Balances', 'Open Orders', 'Perp Positions', // 'Fees', 'Trade History', ] const StyledAlertCount = styled.span` font-size: 0.6rem; ` const UserInfoTabs = ({ activeTab, setActiveTab }) => { const openOrders = useOpenOrders() // const perpPositions = usePerpPositions() const handleTabChange = (tabName) => { setActiveTab(tabName) } return (