import { i18n } from '@kbn/i18n' ; import { ValidationFunc , fieldValidators } from '../shared_imports' ; export const queryFieldValidation = fieldValidators . emptyField ( i18n . translate ( 'xpack.osquery.pack.queryFlyoutForm.emptyQueryError' , { defaultMessage : 'Query is a required field' , } ) ) ;