Skip to main content

Function: getStatusIcon()

getStatusIcon(status: string): string

Defined in: src/utils/status.ts:60

Get the icon component for a given status. Provides visual indicators for different monitoring states using the shared AppIcons catalog.

Parametersโ€‹

statusโ€‹

string

The status string to get an icon for.

Returnsโ€‹

string

Unicode glyph representing the status or a neutral icon for unknown statuses.

Remarksโ€‹

Status comparison is case-insensitive. Supports standard monitoring states: down, mixed, paused, pending, unknown, up. Unknown statuses return a neutral icon.