import React from 'react' ; import { EuiSpacer } from '@elastic/eui' ; import { CodeEditor } from '../../../../../../../../../../../../src/plugins/kibana_react/public' ; import { FilterAggConfigEditor } from '../types' ; export const FilterEditorForm = ( { config , onChange , } ) => { return ( < > < EuiSpacer size = "m" / > < CodeEditor height = { 300 } languageId = { 'json' } onChange = { ( d ) => { onChange ( { config : d } ) ; } } options = { { automaticLayout : true , fontSize : 12 , scrollBeyondLastLine : false , quickSuggestions : true , minimap : { enabled : false , } , wordWrap : 'on' , wrappingIndent : 'indent' , } } value = { config || '' } /> < />); } ;