import { ComponentProps } from 'react'; import { HeartPulse, Server } from 'lucide-react'; import { TableContainer, TableTitle } from '@@/datatables'; import { DetailsTable } from '@@/DetailsTable'; import { Icon } from '@@/Icon'; import { Health } from '../types/response'; const StatusMode: Record< Health['Status'], ComponentProps['mode'] > = { healthy: 'success', unhealthy: 'danger', starting: 'warning', }; interface Props { health: Health; } export function HealthStatus({ health }: Props) { return (
{health.Status}
{health.FailingStreak} {health.Log[health.Log.length - 1].Output}
); }