import React from 'react' import type { FeatureOptions } from '@toptal/picasso-utils' import { disableUnsupportedProps, documentable, forwardRef, } from '@toptal/picasso-utils' import type { SelectProps, ValueType } from '../SelectBase' import { NonNativeSelect } from '../NonNativeSelect' import { NativeSelect } from '../NativeSelect' const purifyProps = ( props: SelectProps ): SelectProps => { const sizeOptions: FeatureOptions> = { featureProps: { size: 'small', }, unsupportedProps: { icon: undefined, loading: false, }, } return disableUnsupportedProps('Select', props, sizeOptions) } export const Select = documentable( forwardRef( ( { native, ...props }: SelectProps, ref: React.Ref | null ) => { return native ? ( // eslint-disable-next-line react/jsx-props-no-spreading ) : ( // eslint-disable-next-line react/jsx-props-no-spreading ) } ) ) export default Select