header and notification

This commit is contained in:
hamid zarghami
2025-07-20 10:12:31 +03:30
parent 27fc6b765c
commit 4f3976bfe8
17 changed files with 677 additions and 102 deletions
@@ -0,0 +1,9 @@
import { useQuery } from "@tanstack/react-query";
import * as api from "../service/Service";
export const useGetProfile = () => {
return useQuery({
queryKey: ["profile"],
queryFn: api.getProfile,
});
};
+6
View File
@@ -0,0 +1,6 @@
import axios from "@/config/axios";
export const getProfile = async () => {
const { data } = await axios.get("/users/me");
return data;
};