GetIconLabel returns a label with or without an icon prefix based on showIcons flag. When showIcons is true, returns "icon label" (with a space separator). When showIcons is false, returns just the label.
(label string, icon string, showIcons bool)
| 124 | // When showIcons is true, returns "icon label" (with a space separator). |
| 125 | // When showIcons is false, returns just the label. |
| 126 | func GetIconLabel(label string, icon string, showIcons bool) string { |
| 127 | if showIcons { |
| 128 | return icon + " " + label |
| 129 | } |
| 130 | return label |
| 131 | } |
| 132 | |
| 133 | // GetStatusEmoji returns the appropriate status emoji or text based on showIcons flag. |
| 134 | func GetStatusEmoji(status string, showIcons bool) string { |
no outgoing calls
no test coverage detected