utils.tsx 433 B

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