function canInviteMembers(mode) {
  return mode !== "single-user";
}
function canSwitchTeams(mode) {
  return mode === "multi-tenant";
}
function canCreateTeams(mode) {
  return mode === "multi-tenant";
}
function createsTeamOnSignup(mode) {
  return mode !== "single-tenant";
}
function isPublicSignupRestricted(mode) {
  return mode === "single-tenant";
}
function canUserCreateTeam(mode, options, userOwnedTeamsCount) {
  if (mode !== "multi-tenant") {
    return false;
  }
  const allowCreateTeams = options.allowCreateTeams ?? true;
  if (allowCreateTeams) {
    return true;
  } else {
    return userOwnedTeamsCount === 0;
  }
}
export {
  canCreateTeams,
  canInviteMembers,
  canSwitchTeams,
  canUserCreateTeam,
  createsTeamOnSignup,
  isPublicSignupRestricted
};
