detail of review

This commit is contained in:
hamid zarghami
2025-12-09 12:13:11 +03:30
parent f995d03b30
commit 4606a8b479
6 changed files with 360 additions and 2 deletions
+7
View File
@@ -7,3 +7,10 @@ export const useGetReviews = (params?: Record<string, string | number>) => {
queryFn: () => api.getReviews(params),
});
};
export const useGetReviewById = (id: string) => {
return useQuery({
queryKey: ["review", id],
queryFn: () => api.getReviewById(id),
});
};