import type { JSX } from 'react'; import type { Status } from '../../shared/api/types/status'; import { HealthActions } from './HealthActions'; import { HealthRing } from './HealthRing'; import { healthHeadline, healthLede } from './healthTexts'; import { ProblemMix } from './ProblemMix'; import { problemCount } from './ringGeometry'; export function Health( { status }: { status: Status } ): JSX.Element { const { counts } = status; return (

{ healthHeadline( counts.broken ) }

{ healthLede( counts ) }

{ problemCount( counts ) > 0 && }
); }