utils.tsx 914 B

123456789101112131415161718192021222324252627
  1. import ExternalLink from 'sentry/components/links/externalLink';
  2. import PanelItem from 'sentry/components/panels/panelItem';
  3. import {tct} from 'sentry/locale';
  4. import {defined} from 'sentry/utils';
  5. import withSubscription from 'getsentry/components/withSubscription';
  6. import type {Subscription} from 'getsentry/types';
  7. function DataConsentHeader({subscription}: {subscription: Subscription}) {
  8. if (defined(subscription.msaUpdatedForDataConsent)) {
  9. return null;
  10. }
  11. return (
  12. <PanelItem key="tos-non-identifying">
  13. <p>
  14. {tct(
  15. 'In accordance with our [link:Terms of Service], Sentry may use non-identifying elements of your service data for product improvement.',
  16. {
  17. link: <ExternalLink href="https://sentry.io/terms/" />,
  18. }
  19. )}
  20. </p>
  21. </PanelItem>
  22. );
  23. }
  24. export const DataConsentSettingsHeader = withSubscription(DataConsentHeader);