import { type SelectHTMLAttributes } from "react"; interface SelectOption { value: string; label: string; } interface SelectFieldProps extends SelectHTMLAttributes { label: string; options: SelectOption[]; error?: string; } export function SelectField({ label, options, error, id, name, className = "", ...rest }: SelectFieldProps) { const fieldId = id ?? name; return (
{error &&

{error}

}
); }