import { MDXRemote } from "remote-mdx/rsc"; import { CodeHighlighter } from "@/app/components/code-highlighter"; import { Separator } from "@/app/components/ui/separator"; import { cn } from "@/common/utils"; import Link from "next/link"; /** * Create a heading component. * * @param level the level of the heading. */ function createHeading(level: number) { // eslint-disable-next-line react/display-name return (props: any) => { const Tag = `h${level}`; return (
1 ? "pt-6" : null)}>
); }; } /** * The components to use in the MDX renderer. */ const components = { h1: (props: any) => createHeading(1)(props), h2: (props: any) => createHeading(2)(props), code: (props: any) => { if (!props.className) { return ; } return (
); }, ul: (props: any) => , a: (props: any) => ( {props.children} ), }; export function CustomMDX(props: any) { return ; }