onboardingContent.tsx 604 B

123456789101112131415161718192021222324252627
  1. import {Fragment} from 'react';
  2. import styled from '@emotion/styled';
  3. import ExternalLink from 'sentry/components/links/externalLink';
  4. import {t} from 'sentry/locale';
  5. import {space} from 'sentry/styles/space';
  6. type Props = {
  7. description: string;
  8. link: string;
  9. title: string;
  10. };
  11. export function OnboardingContent({description, link, title}: Props) {
  12. return (
  13. <Fragment>
  14. <Header>{title}</Header>
  15. <p>
  16. {description} <ExternalLink href={link}>{t('Learn more')}</ExternalLink>
  17. </p>
  18. </Fragment>
  19. );
  20. }
  21. const Header = styled('h3')`
  22. margin-bottom: ${space(1)};
  23. `;