import {formatCoresLegend} from '../../../../utils/metrics/formatMetricLegend'; import {getDiagramValues} from '../../../../utils/metrics/getDiagramValues'; import i18n from '../../i18n'; import type {ClusterMetricsCommonProps} from '../shared'; import {ClusterMetricsCardContent} from './ClusterMetricsCard'; interface ClusterMetricsCoresProps extends ClusterMetricsCommonProps {} export function ClusterMetricsCores({ collapsed, value, capacity, ...rest }: ClusterMetricsCoresProps) { const {status, percents, legend, progressValue} = getDiagramValues({ value, capacity, legendFormatter: formatCoresLegend, ...rest, }); return ( ); }