mirror of
https://github.com/urosran/cally.git
synced 2025-07-10 15:17:17 +00:00
15 lines
375 B
TypeScript
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();
|
|
},
|
|
});
|
|
};
|