import { QUERY_KEYS } from "@/utils/query-key";
import { useQuery } from "@tanstack/react-query";
import { getDiscountDraftDetail, getDraftDetail } from "./_requests";

export const useDiscountDraftDetail = (id: string) => {
  return useQuery({
    queryKey: [QUERY_KEYS.GET_DISCOUNT_DETAIL, id],
    queryFn: () => getDiscountDraftDetail(id),
  });
};

export const useDraftDetail = (id: string) => {
  return useQuery({
    queryKey: [QUERY_KEYS.GET_DRAFT_DETAIL, id],
    queryFn: () => getDraftDetail(id),
  });
};
