mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
23 lines
507 B
JavaScript
23 lines
507 B
JavaScript
import React, { forwardRef } from "react";
|
|
import AceEditor from "react-ace";
|
|
|
|
import "./AceEditorInput.less";
|
|
|
|
function AceEditorInput(props, ref) {
|
|
return (
|
|
<div className="ace-editor-input" data-test={props["data-test"]}>
|
|
<AceEditor
|
|
ref={ref}
|
|
mode="sql"
|
|
theme="textmate"
|
|
height="100px"
|
|
editorProps={{ $blockScrolling: Infinity }}
|
|
showPrintMargin={false}
|
|
{...props}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default forwardRef(AceEditorInput);
|