import type { Ref, SelectHTMLAttributes } from 'react'; import { useRef } from 'react'; import { forwardRef } from 'react'; import classNames from 'classnames'; import { Icon } from '..'; import { defaultSelectElement } from '../../utils/shared'; import * as SelectPrimitive from '@radix-ui/react-select'; export interface SelectProps extends SelectHTMLAttributes { hasError?: boolean; className?: string; value?: string | number; children?: React.ReactNode; } export const Select = forwardRef( ({ className, hasError, ...props }, ref) => (