fullIntroduction.tsx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import {Fragment} from 'react';
  2. import {motion} from 'framer-motion';
  3. import {openInviteMembersModal} from 'sentry/actionCreators/modal';
  4. import Button from 'sentry/components/button';
  5. import {PlatformKey} from 'sentry/data/platformCategories';
  6. import platforms from 'sentry/data/platforms';
  7. import {t, tct} from 'sentry/locale';
  8. import SetupIntroduction from './setupIntroduction';
  9. type Props = {
  10. currentPlatform: PlatformKey;
  11. };
  12. export default function FullIntroduction({currentPlatform}: Props) {
  13. return (
  14. <Fragment>
  15. <SetupIntroduction
  16. stepHeaderText={t(
  17. 'Prepare the %s SDK',
  18. platforms.find(p => p.id === currentPlatform)?.name ?? ''
  19. )}
  20. platform={currentPlatform}
  21. />
  22. <motion.p
  23. variants={{
  24. initial: {opacity: 0},
  25. animate: {opacity: 1},
  26. exit: {opacity: 0},
  27. }}
  28. >
  29. {tct(
  30. "Don't have a relationship with your terminal? [link:Invite your team instead].",
  31. {
  32. link: (
  33. <Button
  34. priority="link"
  35. data-test-id="onboarding-getting-started-invite-members"
  36. onClick={() => {
  37. openInviteMembersModal();
  38. }}
  39. aria-label={t('Invite your team instead')}
  40. />
  41. ),
  42. }
  43. )}
  44. </motion.p>
  45. </Fragment>
  46. );
  47. }