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

Function BlogPostLink

apps/site/components/Downloads/Release/BlogPostLink.tsx:10–15  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

8import type { FC, PropsWithChildren } from 'react';
9
10const BlogPostLink: FC<PropsWithChildren> = ({ children }) => {
11 const { release } = use(ReleaseContext);
12 const version = release.versionWithPrefix;
13
14 return <Link href={`/blog/release/${version}`}>{children}</Link>;
15};
16
17export default BlogPostLink;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected