platformHeaderButtonBar.tsx 661 B

1234567891011121314151617181920212223242526
  1. import {Button} 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. <Button
  13. size="sm"
  14. icon={<IconChevron size="xs" direction="left" />}
  15. to={gettingStartedLink}
  16. >
  17. {t('Back')}
  18. </Button>
  19. <Button size="sm" href={docsLink} external>
  20. {t('Full Documentation')}
  21. </Button>
  22. </ButtonBar>
  23. );
  24. }