waitingActivity.tsx 935 B

1234567891011121314151617181920212223242526272829303132333435
  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/panel';
  5. import {IconRefresh} from 'sentry/icons';
  6. import {t, tct} from 'sentry/locale';
  7. type Props = {
  8. disabled: boolean;
  9. onRefresh: () => void;
  10. };
  11. function WaitingActivity({onRefresh, disabled}: Props) {
  12. return (
  13. <Panel>
  14. <EmptyMessage
  15. title={t('Waiting on Activity!')}
  16. description={
  17. disabled
  18. ? undefined
  19. : tct('Run relay in your terminal with [commandLine]', {
  20. commandLine: <CommandLine>{'relay run'}</CommandLine>,
  21. })
  22. }
  23. action={
  24. <Button icon={<IconRefresh />} onClick={onRefresh}>
  25. {t('Refresh')}
  26. </Button>
  27. }
  28. />
  29. </Panel>
  30. );
  31. }
  32. export default WaitingActivity;