import React from 'react' ; import { i18n } from '@osd/i18n' ; import { IndexPatternField } from 'src/plugins/data/public' ; import { FieldParamEditor } from './field' ; import { AggParamEditorProps } from '../agg_param_props' ; function TopSortFieldParamEditor ( props ) { const customLabel = i18n . translate ( 'visDefaultEditor.controls.sortOnLabel' , { defaultMessage : 'Sort on' , } ) ; return < FieldParamEditor { ... props } customLabel = { customLabel } / > ; } export { TopSortFieldParamEditor } ;