- {healthState.status === 'loading' && (
-
-
-
-
- Health checks
- Loading current health
-
-
- )}
- {healthState.status === 'error' && (
-
-
-
-
- Health checks
- {healthState.error}
-
-
- )}
- {healthState.status === 'success' && healthState.checks.length === 0 && (
-
-
-
-
- Health checks
- No health checks returned
-
-
- )}
- {healthState.status === 'success' && healthState.checks.map((check) => {
- const rowStatus = healthIconStatus(check.status);
-
- return (
-
- {healthIcon(check.status)}
- {check.title}
- {check.detail}
-
-
- );
- })}
-
-