disabledQuickTrace.tsx 770 B

12345678910111213141516171819202122232425262728293031
  1. import {Button} from 'sentry/components/button';
  2. import {t} from 'sentry/locale';
  3. import type {Organization} from 'sentry/types/organization';
  4. import {QuickTraceMetaBase} from 'sentry/views/performance/transactionDetails/quickTraceMeta';
  5. import {openUpsellModal} from 'getsentry/actionCreators/modal';
  6. type Props = {
  7. organization: Organization;
  8. };
  9. export default function DisabledQuickTrace({organization}: Props) {
  10. return (
  11. <QuickTraceMetaBase
  12. body={t('Missing Trace')}
  13. footer={
  14. <Button
  15. priority="link"
  16. onClick={() =>
  17. openUpsellModal({
  18. organization,
  19. source: 'quick-trace',
  20. })
  21. }
  22. >
  23. {t('Learn More')}
  24. </Button>
  25. }
  26. />
  27. );
  28. }