basse notification

This commit is contained in:
hamid zarghami
2025-12-10 09:03:56 +03:30
parent abf2dceabf
commit 9248fe3cee
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,9 @@
import * as api from "../service/NotificationService";
import { useQuery } from "@tanstack/react-query";
export const useGetNotifications = () => {
return useQuery({
queryKey: ["notifications"],
queryFn: api.getNotifications,
});
};