(trail: WireTrail)
| 31 | * line, so the two facts cannot be read as one. |
| 32 | */ |
| 33 | export function trailMeta(trail: WireTrail): string { |
| 34 | const hops = plural(trail.hops.length, 'hop'); |
| 35 | return trail.author ? `${hops} · ${trail.author}` : hops; |
| 36 | } |
| 37 | |
| 38 | /** The verdict a decayed hop carries, in the words a row uses. */ |
| 39 | export function hopStatusWord(status: WireTrailHopStatus): string { |
no test coverage detected