import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter' ; import { vscDarkPlus as style } from 'react-syntax-highlighter/dist/cjs/styles/prism' ; import React from 'react' ; const CodeSnippet = ( { code , language } ) => ( < SyntaxHighlighter wrapLongLines language = { language } style = { style } > { code } < /SyntaxHighlighter>); export default CodeSnippet ;