import * as React from 'react'; import { cn } from '@/lib/utils/cn'; export interface SelectOption { value: string; label: string; } export interface SelectProps extends Omit, 'onChange'> { options: SelectOption[]; onValueChange?: (value: string) => void; label?: string; } const Select = React.forwardRef( ({ className, options, onValueChange, label, value, ...props }, ref) => { const handleChange = (e: React.ChangeEvent) => { onValueChange?.(e.target.value); }; return (
{label && }
); } ); Select.displayName = 'Select'; export { Select };