import { ReactElement } from "react"; import SyntaxHighlighter from "react-syntax-highlighter"; import { atomOneDark } from "react-syntax-highlighter/dist/esm/styles/hljs"; type CodeHighlighterProps = { /** * The code to highlight. */ code: string; /** * Should the element be rounded? */ rounded?: boolean; }; export function CodeHighlighter({ code, rounded = true }: CodeHighlighterProps): ReactElement { return ( {code} ); }