import { useState } from 'react' import FloatingElement from './FloatingElement' import OpenOrdersTable from './OpenOrdersTable' import BalancesTable from './BalancesTable' // import PositionsTable from './PositionsTable' import TradeHistoryTable from './TradeHistoryTable' import { Position } from '../public/charting_library/charting_library' // import FeeDiscountsTable from './FeeDiscountsTable' const TABS = [ 'Open Orders', 'Balances', 'Trade History', 'Positions' /*'Fee Discounts'*/, ] const UserInfoTabs = ({ activeTab, setActiveTab }) => { const handleTabChange = (tabName) => { setActiveTab(tabName) } return (
) } const TabContent = ({ activeTab }) => { switch (activeTab) { case 'Orders': return case 'Balances': return case 'Trade History': return case 'Positions': return // case 'Fee Discounts': // return default: return } } const UserInfo = () => { const [activeTab, setActiveTab] = useState(TABS[0]) return ( ) } export default UserInfo