import React from 'react'; import { Tabs, TabsProps } from 'antd'; import { useStore } from '@/mstore'; import { observer } from 'mobx-react-lite'; const customTabBar: TabsProps['renderTabBar'] = (props, DefaultTabBar) => ( ); function ProjectTabs() { const { projectsStore } = useStore(); const activeTab = projectsStore.config.tab; const tabItems = [ { key: 'installation', label: 'Installation', content:
Installation Content
}, { key: 'captureRate', label: 'Capture Rate', content:
Capture Rate Content
}, { key: 'metadata', label: 'Metadata', content:
Metadata Content
}, { key: 'tags', label: 'Tags', content:
Tags Content
}, // { key: 'groupKeys', label: 'Group Keys', content:
Group Keys Content
} ]; const onTabChange = (key: string) => { projectsStore.setConfigTab(key); }; return ( ({ key: tab.key, label: tab.label }))} /> ); } export default observer(ProjectTabs);