strapi-plugin-firebase-authentication
Version:
Allows easy integration between clients utilizing Firebase for authentication and Strapi
19 lines (18 loc) • 735 B
TypeScript
/// <reference types="react" />
import { User } from "../../../model/User";
interface UseUserFormReturn {
userData: Partial<User>;
setUserData: React.Dispatch<React.SetStateAction<Partial<User>>>;
emailError: string | null;
phoneError: string | null;
hasBeenTouched: boolean;
handlers: {
onTextInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
onEmailBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
onPhoneChange: (value: string | undefined) => void;
onToggleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
};
isSubmitDisabled: boolean;
}
export declare const useUserForm: (initialData?: Partial<User>) => UseUserFormReturn;
export {};