import { teamService } from "@/api/services/team.service";
import { queryKeys } from "@/utils/queryKeys";
import { useQuery } from "@tanstack/react-query";


export const useTeam = () => {
  return useQuery({
    queryKey: [...queryKeys.team],
    queryFn: () => teamService.getTeams(),
  });
};