import React from 'react'; import { Icon, Tooltip } from 'UI'; import cn from 'classnames'; import HealthModal from 'Components/Header/HealthStatus/HealthModal/HealthModal'; function HealthStatus() { const [healthOk, setHealth] = React.useState(false); const icon = healthOk ? 'pulse' : ('exclamation-circle-fill' as const); return (
); } function HealthMenu({ healthOk, setHealth }: { healthOk: boolean; setHealth: any }) { const title = healthOk ? 'All Systems Operational' : 'Service disruption'; const icon = healthOk ? ('check-circle-fill' as const) : ('exclamation-circle-fill' as const); return (
{title}
Last checked 22 mins. ago
setHealth(!healthOk)}>
Version
123 123
{healthOk ? ( <>
Sessions
10 000
Events
90 000
) : (
Observed installation Issue with the following
)}
); } export default HealthStatus;