import React from "react"; // react-hook-form import { RegisterOptions, UseFormRegister } from "react-hook-form"; type Props = { label?: string; id: string; name: string; value?: string | number | readonly string[]; className?: string; register?: UseFormRegister; disabled?: boolean; validations?: RegisterOptions; error?: any; autoComplete?: "on" | "off"; options: { label: string; value: any }[]; size?: "rg" | "lg"; fullWidth?: boolean; }; export const Select: React.FC = ({ id, label, value, className = "", name, register, disabled, validations, error, options, size = "rg", fullWidth = true, }) => ( <> {label && ( )} {error?.message &&
{error.message}
} );