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

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

export function SilkeSelectFieldNative<T, U extends Entry<T>>(
  props: SilkeSelectFieldNativeProps<T, U>,
) {
  return <SilkeAutocompleteFieldNative {...(props as any)} disableSearch noReset />;
}
