import { u as useQuery } from "./useQuery-CEkjPZZe.js";
import { a as apiService } from "./index-D2CUDDtA.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-DTkYqHeO.js.map
