feat: team draft

This commit is contained in:
2024-11-12 19:15:13 +07:00
parent 8159b65605
commit f5250d5361
23 changed files with 313 additions and 48 deletions
+10
View File
@@ -0,0 +1,10 @@
import authRepo from "@/repositories/auth";
import { useQuery } from "@tanstack/react-query";
export const useUser = () => {
const { data: user } = useQuery({
queryKey: ["auth", "user"],
queryFn: authRepo.getUser,
});
return user;
};