Files
cally/hooks/firebase/useGetCaregivers.ts
2024-08-22 22:02:43 +02:00

15 lines
375 B
TypeScript

import { useMutation } from "react-query";
import firestore from "@react-native-firebase/firestore";
export const useSignUp = () => {
return useMutation({
mutationKey: ["getCaregivers"],
mutationFn: async () => {
const snapshot = await firestore()
.collection("Profiles")
.where("userType", "==", "caregiver")
.get();
},
});
};