(section: TwinSection)
| 57 | }; |
| 58 | |
| 59 | function unavailableText(section: TwinSection): string | undefined { |
| 60 | if (section.state === 'notIndexed') return 'This information is not indexed yet.'; |
| 61 | if (section.state === 'unsupported') return 'The current index does not provide this information.'; |
| 62 | if (section.state === 'unknown') return 'This information is unavailable from the current index.'; |
| 63 | return undefined; |
| 64 | } |
| 65 | |
| 66 | function sectionSummary(section: TwinSection): string { |
| 67 | if (section.rows.length > 0) return String(section.rows.length); |
no outgoing calls
no test coverage detected