import Editor from "react-simple-code-editor"; import Prism from "prismjs"; import "prismjs/components/prism-python"; import { motion, AnimatePresence } from "framer-motion"; interface CodeEditorProps { code: string; onChange: (code: string) => void; scanning: boolean; } export default function CodeEditor({ code, onChange, scanning }: CodeEditorProps) { return (
// SOURCE.py {scanning ? "SCANNING STRUCTURE…" : "paste python to analyze"}
Prism.highlight(src, Prism.languages.python, "python")} padding={16} style={{ fontFamily: "var(--font-mono)", fontSize: 14, minHeight: 260, color: "var(--text-primary)", }} /> {scanning && ( )} {scanning &&
}
); }