import { Suspense } from 'react' import { collectHealth, type ComponentState } from '@/lib/health/check' import { de } from '@/lib/i18n/de' import { SkeletonLine } from '@/components/Skeleton' export const dynamic = 'force-dynamic' const STATE_LABEL: Record = { up: de.health.ok, degraded: de.health.degraded, down: de.health.down, } async function SystemState() { const report = await collectHealth() return ( {Object.entries(report.components).map(([key, value]) => ( ))}
{de.health.checkedAt(new Date(report.checkedAt).toLocaleString('de-DE'))}
{de.health.service} {de.health.state}
{de.health.components[key] ?? key} {/* Zustand als Text, nicht nur als Farbe. */} {STATE_LABEL[value.status]} {value.detail ? ( {value.detail} ) : null}
) } export default function Home() { return (

{de.app.name}

{de.app.description}


{de.health.heading}

} >
) }