import React from 'react' ; import { i18n } from '@osd/i18n' ; import { SwitchParamEditor } from './switch' ; import { AggParamEditorProps } from '../agg_param_props' ; function DropPartialsParamEditor ( props ) { return ( < SwitchParamEditor dataTestSubj = "dropPartialBucketsCheckbox" displayLabel = { i18n . translate ( 'visDefaultEditor.controls.dropPartialBucketsLabel' , { defaultMessage : 'Drop partial buckets' , } ) } displayToolTip = { i18n . translate ( 'visDefaultEditor.controls.dropPartialBucketsTooltip' , { defaultMessage : "Remove buckets that span time outside the time range so the histogram doesn't start and end with incomplete buckets." , } ) } { ... props } />); } export { DropPartialsParamEditor } ;