GetStatusIcon returns the appropriate icon for a story's status.
(passed, inProgress bool)
| 216 | |
| 217 | // GetStatusIcon returns the appropriate icon for a story's status. |
| 218 | func GetStatusIcon(passed, inProgress bool) string { |
| 219 | if passed { |
| 220 | return statusPassedStyle.Render(IconPassed) |
| 221 | } |
| 222 | if inProgress { |
| 223 | return statusInProgressStyle.Render(IconInProgress) |
| 224 | } |
| 225 | return statusPendingStyle.Render(IconPending) |
| 226 | } |
| 227 | |
| 228 | // GetStateStyle returns the appropriate style for an app state. |
| 229 | func GetStateStyle(state AppState) lipgloss.Style { |
no test coverage detected