import { useQuery } from '@tanstack/react-query'; import { Route, Routes, Link } from 'react-router-dom'; import { api } from '@/api/client'; import { Dashboard } from '@/pages/Dashboard'; export function App() { const health = useQuery({ queryKey: ['health'], queryFn: api.health }); return (
fire-planner
api:{' '} {health.isLoading ? '…' : health.data ? `ok (queue=${health.data.queue_depth})` : 'unreachable'}
} />
); }