mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
19 lines
376 B
TypeScript
19 lines
376 B
TypeScript
import { DocNode } from './DocNode';
|
|
import { Alert } from './ui/Alert';
|
|
|
|
export async function DeprecatedNode({
|
|
deprecatedBlock,
|
|
version,
|
|
}: {
|
|
readonly deprecatedBlock: any;
|
|
readonly version: string;
|
|
}) {
|
|
return (
|
|
<Alert title="Deprecated" type="danger">
|
|
<p className="break-words">
|
|
<DocNode node={deprecatedBlock} version={version} />
|
|
</p>
|
|
</Alert>
|
|
);
|
|
}
|