()
| 11 | import styles from './index.module.css'; |
| 12 | |
| 13 | const EOLReleaseTable: FC = async () => { |
| 14 | const releaseData = await provideReleaseData(); |
| 15 | const vulnerabilities = await provideVulnerabilities(); |
| 16 | |
| 17 | const eolReleases = releaseData.filter(release => release.status === 'EOL'); |
| 18 | |
| 19 | const t = await getTranslations(); |
| 20 | |
| 21 | return ( |
| 22 | <div className={styles.eolTableWrapper}> |
| 23 | <Switch id="hide-non-lts" label={t('components.eolTable.hideNonLts')} /> |
| 24 | <table id="tbVulnerabilities"> |
| 25 | <thead> |
| 26 | <tr> |
| 27 | <th> |
| 28 | {t('components.eolTable.version')} ( |
| 29 | {t('components.eolTable.codename')}) |
| 30 | </th> |
| 31 | <th>{t('components.eolTable.lastUpdated')}</th> |
| 32 | <th>{t('components.eolTable.vulnerabilities')}</th> |
| 33 | <th>{t('components.eolTable.details')}</th> |
| 34 | </tr> |
| 35 | </thead> |
| 36 | |
| 37 | <EOLReleaseTableBody |
| 38 | eolReleases={eolReleases} |
| 39 | vulnerabilities={vulnerabilities} |
| 40 | /> |
| 41 | </table> |
| 42 | </div> |
| 43 | ); |
| 44 | }; |
| 45 | |
| 46 | export default EOLReleaseTable; |
nothing calls this directly
no outgoing calls
no test coverage detected