import { __ } from '@wordpress/i18n'; import type { JSX } from 'react'; import type { Counts } from '../../shared/api/types/status'; import { formatPercent } from '../../shared/lib/numbers'; import { RING_RADIUS, ringGeometry } from './ringGeometry'; const RING_SIZE = 148; const RING_CENTER = RING_SIZE / 2; export function HealthRing( { counts }: { counts: Counts } ): JSX.Element { const geometry = ringGeometry( counts ); return (