import * as React from "react" import Image from "next/image" import { useMDXComponent } from "next-contentlayer/hooks" import { cn } from "@/lib/utils" import { Callout } from "@/components/docs/callout" import { Card } from "@/components/docs/card" const components = { h1: ({ className, ...props }) => (
), h2: ({ className, ...props }) => ( ), h3: ({ className, ...props }) => ( ), h4: ({ className, ...props }) => ( ), h5: ({ className, ...props }) => ( ), h6: ({ className, ...props }) => ( ), a: ({ className, ...props }) => ( ), p: ({ className, ...props }) => ( ), ul: ({ className, ...props }) => (*]:text-slate-600", className )} {...props} /> ), img: ({ className, alt, ...props }: React.ImgHTMLAttributes) => ( // eslint-disable-next-line @next/next/no-img-element ), hr: ({ ...props }) => (
), table: ({ className, ...props }: React.HTMLAttributes) => ( ), tr: ({ className, ...props }: React.HTMLAttributes
) => ( ), th: ({ className, ...props }) => ( ), td: ({ className, ...props }) => ( ), pre: ({ className, ...props }) => ( ), code: ({ className, ...props }) => ( ), Image, Callout, Card, } interface MdxProps { code: string } export function Mdx({ code }: MdxProps) { const Component = useMDXComponent(code) return () }