import { u as useQuery, a as apiService } from "./index-GlGoHQS3.js";
const useAnalyticsData = () => {
  return useQuery({
    queryKey: ["analyticsData"],
    queryFn: async () => {
      const response = await apiService.getAnalyticsData();
      if (response.error) {
        throw new Error(response.error);
      }
      return response.data;
    },
    staleTime: 1e3 * 60 * 5
    // 5 minutes
  });
};
export {
  useAnalyticsData as u
};
//# sourceMappingURL=useAnalyticsData-DTjNsCBy.js.map
