Skip to main content

Function: formatStatusLabel()

formatStatusLabel(status: string): string

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

Format status with icon metadata and properly capitalized text.

Parametersโ€‹

statusโ€‹

string

The status string to format (expected to be lowercase).

Returnsโ€‹

string

Status label with capitalized first letter.

Remarksโ€‹

Returns an object containing the icon component associated with the status and the capitalized label for display. For multi-word statuses, consider using a more sophisticated formatting function for label generation.