import {Label, Tab, TabList, TabProvider} from '@gravity-ui/uikit'; import {AutoRefreshControl} from '../../../../components/AutoRefreshControl/AutoRefreshControl'; import {InternalLink} from '../../../../components/InternalLink'; import {cn} from '../../../../utils/cn'; import type {Page} from '../DiagnosticsPages'; import {useDiagnosticsPageLinkGetter} from '../DiagnosticsPages'; import './DiagnosticsTabs.scss'; const b = cn('ydb-database-diagnostics-tabs'); interface DiagnosticsTabsProps { activeTab: Page; tabs: Page[]; } export function DiagnosticsTabs({activeTab, tabs}: DiagnosticsTabsProps) { const getDiagnosticsPageLink = useDiagnosticsPageLinkGetter(); return (
{tabs.map(({id, title, badge}) => ( ))}
); } interface DiagnosticsTabItemProps extends Page { linkPath: string; } function DiagnosticsTabItem({id, title, linkPath, badge}: DiagnosticsTabItemProps) { return ( {title} {badge && ( )} ); }