import { useQuery } from "@tanstack/react-query";
import * as api from "../service/DiscountService";

export const useGetMyDiscount = () => {
  return useQuery({
    queryKey: ["my-discount"],
    queryFn: () => api.getMyDiscounts(),
  });
};
