mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Re-level non-docs content to top of repo and rename content→docs
This commit is contained in:
15
shared/editor/javascript-editor.tsx
Normal file
15
shared/editor/javascript-editor.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { javascript } from '@codemirror/lang-javascript'
|
||||
import { Editor, EditorWrapperProps } from './editor'
|
||||
|
||||
export const JavascriptEditor = ({value, onChange, readOnly }: EditorWrapperProps) => {
|
||||
return <Editor
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
readOnly={readOnly}
|
||||
extensions={
|
||||
[
|
||||
javascript(),
|
||||
]
|
||||
}
|
||||
/>
|
||||
}
|
||||
Reference in New Issue
Block a user