Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
import type { StatusBadgeProps } from '@/components/shared/statusBadgeModel';
export function useStatusBadgeState(props: StatusBadgeProps) {
const isDisabled = () => Boolean(props.disabled);
return {
handleClick: () => {
if (isDisabled()) {
return;
}
props.onToggle?.();
},
isDisabled,
};
}