Finish editor in Playground Code Editor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user