({ code, language }: CodeHighlightProps)
| 103 | } |
| 104 | |
| 105 | export const CodeHighlight = ({ code, language }: CodeHighlightProps) => ( |
| 106 | <CodeHighlightAdapterProvider adapter={codeHighlightAdapter}> |
| 107 | <MantineCodeHighlight |
| 108 | className={classes.highlight} |
| 109 | classNames={{ |
| 110 | code: classes['code-inner'], |
| 111 | pre: classes.code, |
| 112 | scrollarea: classes.scrollarea, |
| 113 | }} |
| 114 | code={code} |
| 115 | language={highlightLanguage(language)} |
| 116 | withCopyButton={false} |
| 117 | /> |
| 118 | </CodeHighlightAdapterProvider> |
| 119 | ); |
| 120 | |
| 121 | type CodePreProps = ComponentProps<'pre'> & { |
| 122 | icon?: string; |
nothing calls this directly
no test coverage detected