"use client";
import { useTeamContext } from "../contexts/TeamContext.js";
function useTeam() {
  const { currentTeam, isLoading, canCurrentUserCreateTeam } = useTeamContext();
  return {
    team: currentTeam,
    teamId: currentTeam == null ? void 0 : currentTeam.id,
    canCurrentUserCreateTeam,
    isLoading
  };
}
export {
  useTeam
};
