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