mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
19 lines
433 B
TypeScript
19 lines
433 B
TypeScript
import {t} from 'sentry/locale';
|
|
|
|
export function getButtonHelpText(
|
|
isIdpProvisioned: boolean = false,
|
|
isPermissionGroup: boolean = false
|
|
) {
|
|
if (isIdpProvisioned) {
|
|
return t(
|
|
"Membership to this team is managed through your organization's identity provider."
|
|
);
|
|
}
|
|
|
|
if (isPermissionGroup) {
|
|
return t('Membership to a team with an organization role is managed by org owners.');
|
|
}
|
|
|
|
return undefined;
|
|
}
|