notification count

This commit is contained in:
hamid zarghami
2025-12-22 14:14:20 +03:30
parent 051c12725b
commit d363e64bcc
4 changed files with 30 additions and 2 deletions
@@ -19,3 +19,10 @@ export const useGetCategories = () => {
enabled: !!name,
});
};
export const useGetNotificationsCount = () => {
return useQuery({
queryKey: ["notifications-count"],
queryFn: api.getNotificationsCount,
});
};