my coupon

This commit is contained in:
hamid zarghami
2025-12-08 10:28:53 +03:30
parent 4dc31677c8
commit 6653cba5a0
5 changed files with 105 additions and 26 deletions
@@ -0,0 +1,9 @@
import { useQuery } from "@tanstack/react-query";
import * as api from "../service/TransactionService";
export const useGetMyCoupons = () => {
return useQuery({
queryKey: ["my-coupons"],
queryFn: api.getMyCoupons,
});
};