import { classNames } from '@/utils'; import * as Select from '@radix-ui/react-select'; import { FiChevronDown, FiChevronUp } from 'react-icons/fi'; export type FormSelectProps = { value?: string | number; onChange?: (value: string | number) => void; id?: string; contentClass?: string; triggerClass?: string; name?: string; options: { label: string; value: string | number }[]; placeholder?: string; disabled?: boolean; isError?: boolean; }; export default function FormSelect(props: FormSelectProps) { const { value, onChange, id, contentClass, triggerClass, name, options, placeholder, disabled, isError } = props; return ( { onChange?.(value); }} > {options.map((option, index) => { return ( {option.label} ); })} ); }