import React from 'react';
import { SilkeAutocompleteField, SilkeAutocompleteFieldProps } from '../silke-autocomplete-field';
import { Entry } from '../silke-autocomplete-field/autocomplete-types';

export type SilkeSelectFieldProps<T, U extends Entry<T> = any> = Omit<
  SilkeAutocompleteFieldProps<T, U>,
  'disableSearch' | 'noReset'
>;

export function SilkeSelectField<T, U extends Entry<T>>(props: SilkeSelectFieldProps<T, U>) {
  return <SilkeAutocompleteField {...(props as any)} disableSearch noReset />;
}
