mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 02:18:47 +00:00
Fixes #3866 <img width="948" alt="Screenshot 2024-07-18 at 1 05 43 AM" src="https://github.com/user-attachments/assets/4ad3b742-ea4e-4202-a7f8-a016914ef308">
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
import type { MDXComponents } from "mdx/types";
|
|
import CodeBlock from "@/components/CodeBlock";
|
|
|
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
|
return {
|
|
pre: ({ children }) => {
|
|
return <CodeBlock>{children}</CodeBlock>;
|
|
},
|
|
...components,
|
|
};
|
|
}
|