Add FileSelector to CodeEditor

This commit is contained in:
2024-01-08 18:09:05 +08:00
parent 88c66bd7a7
commit 5709815613
12 changed files with 540 additions and 62 deletions

View File

@@ -1,10 +1,12 @@
import React from 'react'
import { editor } from 'monaco-editor'
export type ILanguage = 'javascript' | 'typescript' | 'json' | 'css'
export interface IFile {
name: string
value: string
language: 'javascript' | 'typescript' | 'json' | 'css'
language: ILanguage
active?: boolean
hidden?: boolean
}