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

{props.children}

), h2: (props) => (

{props.children}

), h3: (props) => (

{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, ...props }) => ( {children} ), pre: ({ children, ...props }) => (
        {children}
      
), img: ({ src, alt, ...rest }) => ( {alt} ), table: ({ children }) => (
{children}
), // Lists ul: (props) =>