* * @param {string} code - The string of code you got from bundleMDX * @param {Record } jsxGlobals - JSX globals * @param {Record } [globals] - Any variables your MDX needs to have accessible when it runs * @return {(props: MDXContentProps) => JSX.Element}
(code, jsxGlobals, globals)
| 10 | * @return {(props: MDXContentProps) => JSX.Element} |
| 11 | */ |
| 12 | function getMDXComponent(code, jsxGlobals, globals) { |
| 13 | const mdxExport = getMDXExport(code, jsxGlobals, globals) |
| 14 | return mdxExport.default |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * @template {{}} ExportedObject |
no test coverage detected
searching dependent graphs…