(status: WorkflowDiffStatus)
| 91 | * {@link WorkflowDiffStatus} remains the single source of truth. |
| 92 | */ |
| 93 | export function deriveDiffFlags(status: WorkflowDiffStatus): DiffStatusFlags { |
| 94 | return { |
| 95 | status, |
| 96 | hasActiveDiff: status !== 'none', |
| 97 | isShowingDiff: status === 'showing', |
| 98 | isDiffReady: status !== 'none', |
| 99 | } |
| 100 | } |
no outgoing calls