utils.tsx 409 B

12345678910111213
  1. import {t} from 'sentry/locale';
  2. export function getButtonHelpText(isIdpProvisioned: boolean, isPermissionGroup: boolean) {
  3. if (isIdpProvisioned) {
  4. return t(
  5. "Membership to this team is managed through your organization's identity provider."
  6. );
  7. }
  8. if (isPermissionGroup) {
  9. return t('Membership to a team with an organization role is managed by org owners.');
  10. }
  11. return undefined;
  12. }