Asteri-Vostok/components/CodeEditor/CodeEditor.tsx

20 lines
441 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import Editor from "@monaco-editor/react";
const CodeEditor = () => {
return (
<Editor
height="90vh" // тут фигня, у меня кусок белый остается, высоты ему не хватает
defaultLanguage="cpp"
theme="vs-dark"
defaultValue="// some comment"
options={{
minimap: {
enabled: false,
},
}}
/>
);
};
export default CodeEditor;