replayUnsupportedAlert.tsx 875 B

123456789101112131415161718192021222324252627
  1. import Alert from 'sentry/components/alert';
  2. import ExternalLink from 'sentry/components/links/externalLink';
  3. import {IconInfo} from 'sentry/icons';
  4. import {t, tct} from 'sentry/locale';
  5. interface Props {
  6. projectSlug: string;
  7. }
  8. export default function ReplayUnsupportedAlert({projectSlug}: Props) {
  9. const docsLink = (
  10. <ExternalLink href="https://docs.sentry.io/product/session-replay/getting-started/#supported-sdks" />
  11. );
  12. const waitlistLink = <ExternalLink href="https://sentry.io/lp/mobile-replay-beta/" />;
  13. return (
  14. <Alert icon={<IconInfo />}>
  15. <strong>{t(`Session Replay isn't available for %s.`, projectSlug)}</strong>{' '}
  16. {tct(
  17. `Currently, [docsLink:Web is supported], and Mobile is being developed. Join our [waitlistLink:waitlist].`,
  18. {
  19. docsLink,
  20. waitlistLink,
  21. }
  22. )}
  23. </Alert>
  24. );
  25. }