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 = [ 'Balances', 'Open Orders', 'Positions', /*'Fee Discounts'*/ 'Trade History', ] const UserInfoTabs = ({ activeTab, setActiveTab }) => { const handleTabChange = (tabName) => { setActiveTab(tabName) } return (
) } const TabContent = ({ activeTab }) => { switch (activeTab) { case 'Open 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