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

Function DownloadsTable

apps/site/components/Downloads/DownloadsTable/index.tsx:13–46  ·  view source on GitHub ↗
({ source })

Source from the content-addressed store, hash-verified

11};
12
13const DownloadsTable: FC<DownloadsTableProps> = ({ source }) => {
14 const t = useTranslations();
15
16 return (
17 <table>
18 <thead>
19 <tr>
20 <th>{t('components.downloadsTable.fileName')}</th>
21 <th className="md:w-28">
22 {t('components.downloadsTable.operatingSystem')}
23 </th>
24 <th className="md:w-28">
25 {t('components.downloadsTable.architecture')}
26 </th>
27 </tr>
28 </thead>
29 <tbody>
30 {source.map(release => (
31 <tr key={`${release.fileName}-${release.architecture}`}>
32 <td data-label={t('components.downloadsTable.fileName')}>
33 <Link href={release.url}>{release.fileName}</Link>
34 </td>
35 <td data-label={t('components.downloadsTable.operatingSystem')}>
36 {OperatingSystemLabel[release.os]}
37 </td>
38 <td data-label={t('components.downloadsTable.architecture')}>
39 {release.architecture}
40 </td>
41 </tr>
42 ))}
43 </tbody>
44 </table>
45 );
46};
47
48export default DownloadsTable;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected