index.tsx 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import Button from 'sentry/components/button';
  2. import ErrorBoundary from 'sentry/components/errorBoundary';
  3. import EventDataSection from 'sentry/components/events/eventDataSection';
  4. import LazyLoad from 'sentry/components/lazyLoad';
  5. import {t} from 'sentry/locale';
  6. type Props = {
  7. orgSlug: string;
  8. projectSlug: string;
  9. replayId: string;
  10. };
  11. export default function EventReplay({replayId, orgSlug, projectSlug}: Props) {
  12. return (
  13. <EventDataSection
  14. type="replay"
  15. title={t('Replay')}
  16. actions={
  17. <Button
  18. size="sm"
  19. priority="primary"
  20. to={`/organizations/${orgSlug}/replays/${projectSlug}:${replayId}`}
  21. >
  22. View Details
  23. </Button>
  24. }
  25. >
  26. <ErrorBoundary mini>
  27. <LazyLoad
  28. component={() => import('./replayContent')}
  29. replaySlug={`${projectSlug}:${replayId}`}
  30. orgSlug={orgSlug}
  31. />
  32. </ErrorBoundary>
  33. </EventDataSection>
  34. );
  35. }