( id: EntrySection['id'], title: string, note: string, list: WireList<unknown>, groups: EntryGroup[], floor: boolean, extraMeta = '' )
| 210 | } |
| 211 | |
| 212 | function section( |
| 213 | id: EntrySection['id'], |
| 214 | title: string, |
| 215 | note: string, |
| 216 | list: WireList<unknown>, |
| 217 | groups: EntryGroup[], |
| 218 | floor: boolean, |
| 219 | extraMeta = '' |
| 220 | ): EntrySection { |
| 221 | const counts = countMeta(list, floor); |
| 222 | return { |
| 223 | id, |
| 224 | title, |
| 225 | meta: extraMeta ? `${counts} · ${extraMeta}` : counts, |
| 226 | note, |
| 227 | groups, |
| 228 | shown: list.shown, |
| 229 | total: list.total, |
| 230 | floor, |
| 231 | }; |
| 232 | } |
| 233 | |
| 234 | export function buildEntryPanel(entries: WireEntryPoints | null): EntryPanel { |
| 235 | if (!entries) return { sections: [], rows: [], empty: null }; |
no test coverage detected