feat: link basic types to MDN/TS documentation (#9913)

* feat: link basic types to MDN/TS documentation

* refactor: requested changes
This commit is contained in:
Almeida
2023-11-10 14:50:25 +00:00
committed by GitHub
parent 6dca8013af
commit 81334a2a2c
3 changed files with 98 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
import type { PropsWithChildren } from 'react';
export function DocumentationLink({ children, href }: PropsWithChildren<{ readonly href: string }>) {
return (
<a className="text-blurple" href={href} rel="external noreferrer noopener" target="_blank">
{children}
</a>
);
}