({ children })
| 8 | import type { FC, PropsWithChildren } from 'react'; |
| 9 | |
| 10 | const 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 | |
| 17 | export default BlogPostLink; |
nothing calls this directly
no outgoing calls
no test coverage detected