import React from 'react';
import { Tabs, TabsProps } from 'antd';
import { useStore } from '@/mstore';
import { observer } from 'mobx-react-lite';
import { useTranslation } from 'react-i18next';
const customTabBar: TabsProps['renderTabBar'] = (props, DefaultTabBar) => (
);
function ProjectTabs() {
const { t } = useTranslation();
const { projectsStore } = useStore();
const activeTab = projectsStore.config.tab;
const tabItems = [
{
key: 'installation',
label: t('Installation'),
content:
{t('Installation Content')}
,
},
{
key: 'captureRate',
label: t('Capture Rate'),
content: {t('Capture Rate Content')}
,
},
{
key: 'metadata',
label: t('Metadata'),
content: {t('Metadata Content')}
,
},
{ key: 'tags', label: t('Tags'), content: {t('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);