diff --git a/landing/components/docs/mdx-components.tsx b/landing/components/docs/mdx-components.tsx index a32c35308e..71596a8d03 100644 --- a/landing/components/docs/mdx-components.tsx +++ b/landing/components/docs/mdx-components.tsx @@ -5,6 +5,7 @@ import Link from "next/link"; import type { ReactNode } from "react"; import { useState } from "react"; import { Button } from "@/components/ui/button"; +import { DynamicCodeBlock } from "@/components/ui/dynamic-code-block"; import type { DBFieldAttribute, DBSchema, @@ -251,30 +252,10 @@ function generateSchema( return ""; } -function SchemaCodeBlock({ - code, - onCopy, -}: { - code: string; - onCopy: () => void; -}) { - const [copied, setCopied] = useState(false); +function SchemaCodeBlock({ code, lang }: { code: string; lang: string }) { return ( -
- {code}
-
+