import { useEffect, useState } from 'react'
import mangoStore from '@store/mangoStore'
import useMangoAccount from 'hooks/useMangoAccount'
import SecondaryTabBar from '@components/shared/SecondaryTabBar'
import PerpMarketsDetailsTable from './PerpMarketDetailsTable'
import PerpMarketsOverviewTable from './PerpMarketsOverviewTable'
import PerpMarketsPositions from './PerpMarketsPositions'
const TABS = ['overview', 'details', 'trade:positions']
const PerpStats = () => {
const [activeTab, setActiveTab] = useState(TABS[0])
const actions = mangoStore((s) => s.actions)
const { mangoAccountAddress } = useMangoAccount()
useEffect(() => {
if (actions && mangoAccountAddress) {
actions.fetchActivityFeed(mangoAccountAddress)
}
}, [actions, mangoAccountAddress])
return (
<>
>
)
}
const TabContent = ({ activeTab }: { activeTab: string }) => {
switch (activeTab) {
case TABS[0]:
return
case TABS[1]:
return
case TABS[2]:
return
default:
return
}
}
export default PerpStats