sms count

This commit is contained in:
hamid zarghami
2025-12-29 16:21:00 +03:30
parent 8bdd838ddc
commit deda1f1603
10 changed files with 229 additions and 10 deletions
+15
View File
@@ -53,3 +53,18 @@ export const useGetRestaurants = () => {
queryFn: api.getRestaurants,
});
};
export const useGetRestaurantAdmins = (restaurantId: string) => {
return useQuery({
queryKey: ["restaurant-admins", restaurantId],
queryFn: () => api.getRestaurantAdmins(restaurantId),
enabled: !!restaurantId,
});
};
export const useGetRestaurantSmsCount = () => {
return useQuery({
queryKey: ["restaurant-sms-count"],
queryFn: api.getRestaurantSmsCount,
});
};