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