import { useReactorData } from './useReactorData'; export const ReactorSystemGrid = () => { const { health, loading } = useReactorData(); // Convert API health object to array for display const services = Object.entries(health.services || {}).map(([name, status]) => ({ name: name.charAt(0).toUpperCase() + name.slice(1), function: name === 'neo4j' ? 'CORTEX' : name === 'sqlite' ? 'MEMORY' : 'SYSTEM', status: status.healthy ? 'ONLINE' : 'OFFLINE', load: status.healthy ? 'NOMINAL' : 'ERR', color: status.healthy ? 'text-green-400' : 'text-red-400', border: status.healthy ? 'border-green-500' : 'border-red-500' })); if (loading && services.length === 0) { return (