import { useParams, useNavigate } from 'react-router-dom'; import { useQuery } from '@tanstack/react-query'; import { getAgent, getJobs } from '../api/client'; import PageHeader from '../components/PageHeader'; import StatusBadge from '../components/StatusBadge'; import ErrorState from '../components/ErrorState'; import { formatDateTime, timeAgo } from '../api/utils'; function InfoRow({ label, value }: { label: string; value: React.ReactNode }) { return (
No recent jobs
) : ({health}
{health === 'Online' && 'Agent is responding to heartbeat checks'} {health === 'Stale' && 'Agent has not sent a heartbeat recently'} {health === 'Offline' && 'Agent is not responding'}