({
release: { versionWithPrefix },
kind = 'installer',
children,
})
| 9 | type DownloadLinkProps = { release: NodeRelease; kind?: DownloadKind }; |
| 10 | |
| 11 | const DownloadLink: FC<PropsWithChildren<DownloadLinkProps>> = ({ |
| 12 | release: { versionWithPrefix }, |
| 13 | kind = 'installer', |
| 14 | children, |
| 15 | }) => { |
| 16 | const { os, bitness, architecture } = getClientContext(); |
| 17 | |
| 18 | const platform = getUserPlatform(architecture, bitness); |
| 19 | |
| 20 | const downloadLink = getNodeDownloadUrl({ |
| 21 | versionWithPrefix, |
| 22 | os, |
| 23 | platform, |
| 24 | kind, |
| 25 | }); |
| 26 | |
| 27 | return <LinkWithArrow href={downloadLink}>{children}</LinkWithArrow>; |
| 28 | }; |
| 29 | |
| 30 | export default DownloadLink; |
nothing calls this directly
no test coverage detected