import React from "react"; import { Highlight, HighlightProps, themes } from "prism-react-renderer"; import theme from "./theme"; interface CodeEditorProps { code: string; language: string; } export function CodeEditor({ code, language }: CodeEditorProps) { return ( {({ className, style, tokens, getLineProps, getTokenProps }) => (
					{tokens.map((line, i) => (
						
{i + 1} {line.map((token, key) => ( ))}
))}
)}
); }