show profile user in header

This commit is contained in:
hamid zarghami
2025-11-27 11:51:45 +03:30
parent 9c16a6143c
commit 93fd001951
6 changed files with 66 additions and 17 deletions
@@ -0,0 +1,10 @@
import { useQuery } from "@tanstack/react-query";
import * as api from "../service/ProfileService";
export const useGetProfile = () => {
return useQuery({
queryKey: ["profile"],
queryFn: api.getProfile,
retry: false,
});
};