"use client";

import { useQuery } from "@tanstack/react-query";
import { sportsCenterApi } from "@/modules/sports-center/services/sports-center-api";

export function useSportsCenterCapabilities() {
  return useQuery({
    queryKey: ["sports-center", "capabilities"],
    queryFn: () => sportsCenterApi.capabilities(),
    staleTime: 60_000,
  });
}

export function useSportsCenterHealth() {
  return useQuery({
    queryKey: ["sports-center", "health"],
    queryFn: () => sportsCenterApi.health(),
  });
}
