diff --git a/_components/CopyPage.tsx b/_components/CopyPage.tsx new file mode 100644 index 000000000..1d939f616 --- /dev/null +++ b/_components/CopyPage.tsx @@ -0,0 +1,111 @@ +export default function CopyPage({ file }: { file: string | undefined }) { + if (!file || file.includes("[")) return null; + + const markdownUrl = `https://docs.deno.com${file}`; + const claudeUrl = `https://claude.ai/new?q=${ + encodeURIComponent( + `Read this page from the Deno docs: ${markdownUrl} and answer questions about the content.`, + ) + }`; + + return ( +