Files
cally/hooks/firebase/useGetCaregivers.ts
Milan Paunovic 70db8bdc0b New calendar
2024-12-15 16:29:34 +01:00

15 lines
385 B
TypeScript

import { useMutation } from "@tanstack/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();
},
});
};