sms count
This commit is contained in:
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user