@0xsplits/splits-kit
Version:
UI Components for working with 0xSplits contracts
19 lines (18 loc) • 861 B
TypeScript
import { Control, UseFormSetValue, UseFormSetError, FieldValues, Path } from 'react-hook-form';
declare const AddressSelectInput: <FormType extends FieldValues>({ control, inputName, options, emptyText, setValue, setError, validationFunc, validAddressDisplay, clearAddressDefaultValue, isDisabled, supportsEns, }: {
control: Control<FormType>;
inputName: Path<FormType>;
options: {
value: string;
display: () => JSX.Element;
}[];
emptyText: string;
setValue: UseFormSetValue<FormType>;
setError: UseFormSetError<FormType>;
validationFunc: (address: string) => (boolean | string) | Promise<boolean | string>;
validAddressDisplay?: (address: string) => JSX.Element;
clearAddressDefaultValue?: string;
isDisabled?: boolean;
supportsEns: boolean;
}) => JSX.Element;
export default AddressSelectInput;