'use client'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@/components/ui/select'; import { Label } from '@/components/ui/label'; export interface SelectOption { value: string | number; label: string; } export interface SelectInputProps { label: string; value?: string | number; defaultValue?: string | number; options: SelectOption[]; onChange: (value: string | number) => void; className?: string; disabled?: boolean; placeholder?: string; helpText?: string; } export default function SelectInput({ label, value, defaultValue, options, onChange, className = '', disabled = false, placeholder = 'Select an option', helpText, }: SelectInputProps) { const currentValue = value ?? defaultValue; return (
{helpText}
)}