import { cn } from '@/lib/utils'; import { Loader2, ChevronDown } from 'lucide-react'; import { SelectHTMLAttributes, forwardRef } from 'react'; interface SelectProps extends SelectHTMLAttributes { options: { value: string; label: string; disabled?: boolean }[]; loading?: boolean; } export const Select = forwardRef( ({ className, options, loading = false, disabled, ...restProps }, ref) => { return (
{loading ? ( ) : ( )}
); }, ); Select.displayName = 'Select'; export default Select;