Finish editor in Playground Code Editor

This commit is contained in:
2024-01-08 00:16:08 +08:00
parent 82b5e75046
commit d526d913b9
14 changed files with 484 additions and 78 deletions

View File

@@ -1,7 +1,19 @@
import React from 'react'
import Editor from '@/components/ReactPlayground/CodeEditor/Editor'
const OnlineEditor: React.FC = () => {
return <></>
return (
<>
<Editor
theme={'light'}
file={{
name: 'App.tsx',
language: 'typescript',
value: 'const a = () => {}'
}}
/>
</>
)
}
export default OnlineEditor