import { IconLoader } from '@tabler/icons-react' import { cn } from '@/lib/utils' import { FormControl } from '@/components/ui/form' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@/components/ui/select' interface SelectDropdownProps { onValueChange?: (value: string) => void defaultValue: string | undefined placeholder?: string isPending?: boolean items: { label: string; value: string }[] | undefined disabled?: boolean className?: string isControlled?: boolean } export function SelectDropdown({ defaultValue, onValueChange, isPending, items, placeholder, disabled, className = '', isControlled = false, }: SelectDropdownProps) { const defaultState = isControlled ? { value: defaultValue, onValueChange } : { defaultValue, onValueChange } return ( ) }