Skip to main content

Function: formatStatusWithIcon()

formatStatusWithIcon(status: string): string

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

Format status with emoji icon and properly capitalized text. Combines status icon with formatted text for display.

Parametersโ€‹

statusโ€‹

string

The status string to format (expected to be lowercase)

Returnsโ€‹

string

Formatted string with emoji and capitalized text (e.g., "โœ… Up")

Remarksโ€‹

Uses simple capitalization logic suitable for single-word status values. For multi-word statuses, consider using a more sophisticated formatting function.