({ source })
| 11 | }; |
| 12 | |
| 13 | const 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 | |
| 48 | export default DownloadsTable; |
nothing calls this directly
no outgoing calls
no test coverage detected