import clsx from 'clsx'; import { Environment, EnvironmentStatus, } from '@/react/portainer/environments/types'; import { isEdgeEnvironment } from '@/react/portainer/environments/utils'; interface Props { environment: Environment; } export function EnvironmentStatusBadge({ environment }: Props) { if (isEdgeEnvironment(environment.Type)) { return ( ); } return environment.Status === EnvironmentStatus.Up ? ( ) : ( ); } function EnvironmentStatusBadgeComponent({ color, text, heartbeat, }: { color: 'danger' | 'success'; text: string; heartbeat?: boolean; }) { return ( ); }