manage variant producy

This commit is contained in:
hamid zarghami
2025-09-23 15:44:14 +03:30
parent f8ff05357d
commit a71d521c7c
16 changed files with 1186 additions and 15 deletions
@@ -0,0 +1,10 @@
import { useQuery } from "@tanstack/react-query";
import * as api from "../service/WarrantyService";
import type { WarrantyResponse } from "../types/Types";
export const useGetWarranties = () => {
return useQuery<WarrantyResponse>({
queryKey: ["warranties"],
queryFn: () => api.getWarranties(),
});
};