import type { FC, ReactNode } from 'react' import { useTranslation } from 'react-i18next' import { cn } from '@/utils/classnames' import { InspectTab } from './types' const TAB_ITEMS = [ { value: InspectTab.Variables, labelKey: 'debug.variableInspect.tab.variables' }, { value: InspectTab.Artifacts, labelKey: 'debug.variableInspect.tab.artifacts' }, ] as const type TabHeaderProps = { activeTab: InspectTab onTabChange: (tab: InspectTab) => void children?: ReactNode } const TabHeader: FC = ({ activeTab, onTabChange, children, }) => { const { t } = useTranslation('workflow') return (
{TAB_ITEMS.map(tab => ( ))}
{children}
) } export default TabHeader