platformHeaderButtonBar.tsx 671 B

1234567891011121314151617181920212223242526
  1. import {LinkButton} from 'sentry/components/button';
  2. import ButtonBar from 'sentry/components/buttonBar';
  3. import {IconChevron} from 'sentry/icons';
  4. import {t} from 'sentry/locale';
  5. type Props = {
  6. docsLink: string;
  7. gettingStartedLink: string;
  8. };
  9. export default function PlatformHeaderButtonBar({gettingStartedLink, docsLink}: Props) {
  10. return (
  11. <ButtonBar gap={1}>
  12. <LinkButton
  13. size="sm"
  14. icon={<IconChevron direction="left" />}
  15. to={gettingStartedLink}
  16. >
  17. {t('Back')}
  18. </LinkButton>
  19. <LinkButton size="sm" href={docsLink} external>
  20. {t('Full Documentation')}
  21. </LinkButton>
  22. </ButtonBar>
  23. );
  24. }