import {useMutation} from "react-query";
import auth from "@react-native-firebase/auth";

export const useResetPassword = () => {
    return useMutation({
        mutationKey: ["resetPassword"],
        mutationFn: async (
            {
                email,
            }: {
                email: string;
            }) => {
            return await auth().sendPasswordResetEmail(email);
        },
    });
};
