import React, { useEffect } from "react"; import Prism from "prismjs"; interface IProps { code: string; language: string; } const CodeBlock = ({ code, language }: IProps) => { useEffect(() => { Prism.highlightAll(false); }, []); return (
      
    
); }; export default CodeBlock;