src/components/code.tsximport {type DOMNode,Element,type HTMLReactParserOptions,domToReact,} from 'html-react-parser'import { getTextContent } from '@/utils/parse-blocks-helpers'interface CodeBlockProps {className?: stringchildren: React.ReactNode}export function CodeBlock({ className = '', children }: CodeBlockProps) {return (<pre className={`bg-body-dark rounded-lg p-4 overflow-x-auto my-6 ${className}`}>{children}</pre>)}
Showing the first 20 lines.
Get full code