import type { MDXComponents } from 'mdx/types' export function getMDXComponents(components: MDXComponents): MDXComponents { return { ...components, // Typography h1: (props) => (

{props.children}

), h2: (props) => (

{props.children}

), h3: (props) => (

{props.children}

), h4: ({ children, ...props }) => (

{children}

), h5: ({ children, ...props }) => (
{children}
), h6: ({ children, ...props }) => (
{children}
), p: ({ children }) => (

{children}

), blockquote: ({ children }) => (
{children}
), hr: () =>
, a: ({ href, children, ...props }) => { const isExternal = typeof href === 'string' && (href.startsWith('http://') || href.startsWith('https://')) return ( {children} ) }, code: ({ children, className, ...props }: { children: React.ReactNode; className?: string }) => { const match = /language-(\w+)/.exec(className || ''); const language = match ? match[1] : ''; const isInline = !className?.includes('language-'); if (isInline) { return ( {children} ); } return ; }, pre: ({ children, ...props }: { children: React.ReactNode; [key: string]: any }) => (
        {children}
      
), img: ({ src, alt, ...rest }) => ( {alt} ), table: ({ children }) => (
{children}
), // Lists ul: (props) =>