brand page

This commit is contained in:
hamid zarghami
2025-09-20 10:46:45 +03:30
parent 4ed55bd1b7
commit 5adf5fe461
14 changed files with 1471 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { useQuery } from "@tanstack/react-query";
import * as api from "../service/Service";
import { BrandProductsParams } from "../types/Types";
export const useGetBrandProducts = (params: BrandProductsParams) => {
return useQuery({
queryKey: ["brand-products", params],
queryFn: () => api.getBrandProducts(params),
enabled: !!params.brandId,
});
};