"42 of 208" when the list was cut, "42" when it was not.
(list: { shown: number; total: number }, floor: boolean)
| 191 | |
| 192 | /** "42 of 208" when the list was cut, "42" when it was not. */ |
| 193 | function countMeta(list: { shown: number; total: number }, floor: boolean): string { |
| 194 | if (list.shown >= list.total) return `${list.shown}`; |
| 195 | return `${list.shown} of ${floor ? 'at least ' : ''}${list.total}`; |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * "gin", "express and spring" — the frameworks behind a route list. |