import { useQuery } from '@tanstack/react-query';
import { getPlatformStats } from '@/shared/api/platform';

export const PLATFORM_STATS_QUERY_KEY = ['platform', 'stats'] as const;

export function usePlatformStats() {
  return useQuery({
    queryKey: PLATFORM_STATS_QUERY_KEY,
    queryFn: getPlatformStats,
  });
}
