import React from 'react' ; import { EuiFieldSearch } from '@elastic/eui' ; interface Props { inputProps : { placeholder : string ; 'aria-label' : string ; 'data-test-subj' : string ; } ; value : string ; onChange ( value ) : void ; } export const SearchBoxView = ( { onChange , value , inputProps } ) => { return ( < EuiFieldSearch value = { value } onChange = { ( event ) => onChange ( event . target . value ) } fullWidth { ... inputProps } />); } ;