waitingActivity.tsx 883 B

123456789101112131415161718192021222324252627282930313233
  1. import Button from 'sentry/components/button';
  2. import CommandLine from 'sentry/components/commandLine';
  3. import EmptyMessage from 'sentry/components/emptyMessage';
  4. import {Panel} from 'sentry/components/panels';
  5. import {IconRefresh} from 'sentry/icons';
  6. import {t, tct} from 'sentry/locale';
  7. type Props = {
  8. disabled: boolean;
  9. onRefresh: () => void;
  10. };
  11. const WaitingActivity = ({onRefresh, disabled}: Props) => (
  12. <Panel>
  13. <EmptyMessage
  14. title={t('Waiting on Activity!')}
  15. description={
  16. disabled
  17. ? undefined
  18. : tct('Run relay in your terminal with [commandLine]', {
  19. commandLine: <CommandLine>{'relay run'}</CommandLine>,
  20. })
  21. }
  22. action={
  23. <Button icon={<IconRefresh />} onClick={onRefresh}>
  24. {t('Refresh')}
  25. </Button>
  26. }
  27. />
  28. </Panel>
  29. );
  30. export default WaitingActivity;