import React from 'react'; import type { Application } from '../application'; import { CloudProviderLogo } from '../cloudProvider'; import type { IClusterSubgroup } from '../cluster'; import { SETTINGS } from '../config'; import type { IInstanceCounts } from '../domain'; import { EntityNotifications } from '../entityTag/notifications/EntityNotifications'; import { HealthCounts } from '../healthCounts'; export interface IServerGroupManagerHeadingProps { health: IInstanceCounts; provider: string; heading: string; grouping: IClusterSubgroup; app: Application; onClick(event: React.MouseEvent): void; } export const ServerGroupManagerHeading = ({ onClick, health, provider, heading, grouping, app, }: IServerGroupManagerHeadingProps) => { const showEntityTags = SETTINGS.feature && SETTINGS.feature.entityTags; return (
{heading}
{showEntityTags && ( app.serverGroupManagers.refresh()} /> )}
); };