import SyntaxHighlighter from "react-syntax-highlighter"; import { github as syntaxHighlighterStyle } from "react-syntax-highlighter/dist/esm/styles/hljs"; export interface ShowcaseProps { title: string; description?: string; sourceCode: string; previewContent: React.ReactNode; } const Showcase = ({ title, description, sourceCode, previewContent }: ShowcaseProps) => { return (
{title}
{description &&
{description}
}
Code
{sourceCode}
Output
{previewContent}
); }; export default Showcase;