import React from "react"; import CharLimit from "../decorators/CharLimit"; import {Labelled} from "../decorators/Labelled"; import Editor from 'react-simple-code-editor'; import {Highlighter} from "../renderers/Code"; export const Code = ({content, id, readOnly, setContentCallback, ...props}) => { return ( {code} } onValueChange={code => setContentCallback(code)} padding={10} style={{ fontFamily: '"JetBrains Mono", monospace', fontSize: 12, }} /> ); }