import { MDXProvider } from '@mdx-js/react'; import { Highlight, themes, defaultProps } from 'prism-react-renderer'; import CodePen from './src/components/CodePen'; import Editor from './src/components/Editor'; import { Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, } from './src/components/Heading'; const components = { CodePen, Editor, More: () =>
{/* more */}
, h1: Heading1, h2: Heading2, h3: Heading3, h4: Heading4, h5: Heading5, h6: Heading6, pre: ({ children }) => { const className = children.props.className || ''; const matches = className.match(/language-(?.*)/); return ( {({ className, style, tokens, getLineProps, getTokenProps }) => (
            
              {tokens.map((line, i) =>
                i === tokens.length - 1 &&
                line[0].empty &&
                line.length === 1 ? null : (
                  
{line.map((token, key) => ( ))}
), )}
)}
); }, }; export const wrapRootElement = ({ element }) => ( {element} );