// https://github.com/vercel/next.js/blob/canary/examples/app-dir-mdx/mdx-components.tsx import type { MDXComponents } from 'mdx/types' // This file is required to use MDX in `app` directory. export function useMDXComponents(components: MDXComponents): MDXComponents { return { // Allows customizing built-in components, e.g. to add styling. // h1: ({ children }) =>

{children}

, ...components, } }