import type { JSX } from 'react'; import type { Counts } from '../../shared/api/types/status'; import { PROBLEMS, problemLabel } from '../../shared/links/problem'; import { StatusDot } from '../../shared/links/ProblemBadges'; import { formatNumber } from '../../shared/lib/numbers'; import { navigate } from '../../shared/lib/router'; import { Icon } from '../../shared/ui/Icon'; const SEGMENT_CLASSES = { broken: 'seg-bad', blocked: 'seg-warn', moved: 'seg-moved', } as const; export function ProblemMix( { counts }: { counts: Counts } ): JSX.Element { return (