import React from 'react' ; import { EuiSwitch , EuiFormRow } from '@elastic/eui' ; import { i18n } from '@osd/i18n' ; import { AggParamEditorProps } from '../agg_param_props' ; function UseGeocentroidParamEditor ( { value = false , setValue } ) { const label = i18n . translate ( 'visDefaultEditor.controls.placeMarkersOffGridLabel' , { defaultMessage : 'Place markers off grid (use geocentroid)' , } ) ; return ( < EuiFormRow compressed > < EuiSwitch compressed = { true } label = { label } checked = { value } onChange = { ( ev ) => setValue ( ev . target . checked ) } /> < /EuiFormRow>); } export { UseGeocentroidParamEditor } ;