import { forwardRef } from 'react'; import ErrorMessage from './ErrorMessage'; import { Label } from '@/components/ui/Label'; const Select = forwardRef< HTMLSelectElement, React.SelectHTMLAttributes & { label?: string; error?: React.ReactNode; description?: string; options: { value: string; title: string }[]; } //& Partial>> >(({ options, className, label, description, error, ...props }, ref) => ( <> {error && {error}} )); Select.displayName = 'Select'; export default Select;