@open-tender/utils
Version:
A library of utils for use with Open Tender applications that utilize our cloud-based Order API.
15 lines (14 loc) • 739 B
TypeScript
/// <reference types="react" />
import { FormFields, RequestError, RequestStatus } from '@open-tender/types';
export declare const useSendResetForm: (loading: RequestStatus, error: RequestError, sendReset: (email: string, linkUrl: string) => void, callback?: () => void, windowRef?: Window, linkUrlVal?: string) => {
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
fields: FormFields;
data: {
email: string;
};
errors: Record<string, string>;
submitting: boolean;
handleChange: (name: string, value: string | number | boolean) => void;
handleSubmit: (evt?: React.FormEvent<HTMLFormElement>) => void;
};