single service

This commit is contained in:
hamid zarghami
2025-02-12 15:46:39 +03:30
parent 65415ba676
commit c9781b9074
7 changed files with 258 additions and 208 deletions
@@ -22,3 +22,11 @@ export const useGetServicesByCategory = (categoryId: string) => {
enabled: !!categoryId,
});
};
export const useGetDetailService = (serviceId: string) => {
return useQuery({
queryKey: ["service", serviceId],
queryFn: () => api.getDetailService(serviceId),
enabled: !!serviceId,
});
};