import React from 'react' ; import { EuiComboBox , EuiComboBoxOptionOption } from '@elastic/eui' ; interface Props { options : EuiComboBoxOptionOption [ ] ; placeholder ? : string ; changeHandler ( d ) : void ; testSubj ? : string ; isDisabled ? : boolean ; } export const DropDown = ( { changeHandler , options , placeholder = 'Search ...' , testSubj , isDisabled , } ) => { return ( < EuiComboBox fullWidth placeholder = { placeholder } singleSelection = { { asPlainText : true } } options = { options } selectedOptions = { [ ] } onChange = { changeHandler } isClearable = { false } data - test - subj = { testSubj } isDisabled = { isDisabled } / > ) ; } ;