activityDrawer.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import ProjectAvatar from 'sentry/components/avatar/projectAvatar';
  2. import {
  3. CrumbContainer,
  4. EventDrawerBody,
  5. EventDrawerContainer,
  6. EventDrawerHeader,
  7. EventNavigator,
  8. Header,
  9. NavigationCrumbs,
  10. ShortId,
  11. } from 'sentry/components/events/eventDrawer';
  12. import {t} from 'sentry/locale';
  13. import type {Group} from 'sentry/types/group';
  14. import type {Project} from 'sentry/types/project';
  15. import StreamlinedActivitySection from 'sentry/views/issueDetails/streamline/sidebar/activitySection';
  16. interface ActivityDrawerProps {
  17. group: Group;
  18. project: Project;
  19. }
  20. export function ActivityDrawer({group, project}: ActivityDrawerProps) {
  21. return (
  22. <EventDrawerContainer>
  23. <EventDrawerHeader>
  24. <NavigationCrumbs
  25. crumbs={[
  26. {
  27. label: (
  28. <CrumbContainer>
  29. <ProjectAvatar project={project} />
  30. <ShortId>{group.shortId}</ShortId>
  31. </CrumbContainer>
  32. ),
  33. },
  34. {label: t('Activity')},
  35. ]}
  36. />
  37. </EventDrawerHeader>
  38. <EventNavigator>
  39. <Header>{t('Activity')}</Header>
  40. </EventNavigator>
  41. <EventDrawerBody>
  42. <StreamlinedActivitySection group={group} isDrawer />
  43. </EventDrawerBody>
  44. </EventDrawerContainer>
  45. );
  46. }