MCPcopy Create free account
hub / github.com/nodejs/nodejs.org / EOLReleaseTable

Function EOLReleaseTable

apps/site/components/EOL/EOLReleaseTable/index.tsx:13–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import styles from './index.module.css';
12
13const 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
46export default EOLReleaseTable;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected