import { EuiComboBoxOptionOption } from '@elastic/eui' ; export type HandleChange = ( partialModel : Record < string , any > ) => void ; export const createSelectHandler = ( handleChange ) => ( name ) => ( selected = [ ] ) => handleChange ?. ( { [ name ] : selected [ 0 ] ?. value ?? null , } ) ;