mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
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:
9
apps/website/src/components/DocumentationLink.tsx
Normal file
9
apps/website/src/components/DocumentationLink.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user