import { useQuery } from '@tanstack/react-query';
import { dashboardApi } from '../infrastructure/dashboard.api';

export const EVOLUTION_STATS_KEY = 'evolution-stats';
export const SYSTEM_HEALTH_KEY = 'system-health';

export function useEvolutionStatistics() {
  return useQuery({
    queryKey: [EVOLUTION_STATS_KEY],
    queryFn: () => dashboardApi.getEvolutionStatistics(),
  });
}

export function useSystemHealth() {
  return useQuery({
    queryKey: [SYSTEM_HEALTH_KEY],
    queryFn: () => dashboardApi.getSystemHealth(),
  });
}
