import { u as useQuery } from "./useQuery-wzPU4rBJ.js";
import { a as apiService, b as useAuthPhp } from "./index-BzIW3X45.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
  });
};
const useAuth = useAuthPhp;
export {
  useAnalyticsData as a,
  useAuth as u
};
//# sourceMappingURL=useAuth-CMbzK6sL.js.map
