import { useQuery } from "@tanstack/react-query";
import { QUERY_KEYS } from "@/utils/query-key";
import { getSalesSummaryReport } from "./_requests";
import { SalesSummaryFilters } from "./_models";

export const useSalesSummaryReport = (filters: SalesSummaryFilters) => {
  return useQuery({
    queryKey: [QUERY_KEYS.GET_SALES_SUMMARY_REPORT, filters],
    queryFn: () => getSalesSummaryReport(filters),
  });
};
