platformHeaderButtonBar.tsx 620 B

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