-
+
+ {(Object.keys(LANGUAGE_CONFIGS) as Language[]).map((lang) => {
+ const { label, icon, color } = LANGUAGE_CONFIGS[lang];
+ return (
-
-
- setCode(value || "")}
- theme="vs-dark"
- onMount={(editor) => setEditorInstance(editor)}
- options={{
- minimap: { enabled: false },
- fontSize: 14,
- padding: { top: 16 },
- scrollBeyondLastLine: false,
- suggestOnTriggerCharacters: true,
- quickSuggestions: true,
- snippetSuggestions: "inline",
- wordBasedSuggestions: "matchingDocuments",
- parameterHints: {
- enabled: true,
- cycle: true,
- },
- suggest: {
- showKeywords: true,
- showSnippets: true,
- showClasses: true,
- showFunctions: true,
- showVariables: true,
- showWords: true,
- showMethods: true,
- showProperties: true,
- },
- }}
- />
-
+ );
+ })}
+