similarIssuesDrawer.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 GroupSimilarIssues from 'sentry/views/issueDetails/groupSimilarIssues/similarIssues';
  16. export function SimilarIssuesDrawer({group, project}: {group: Group; project: Project}) {
  17. return (
  18. <EventDrawerContainer>
  19. <EventDrawerHeader>
  20. <NavigationCrumbs
  21. crumbs={[
  22. {
  23. label: (
  24. <CrumbContainer>
  25. <ProjectAvatar project={project} />
  26. <ShortId>{group.shortId}</ShortId>
  27. </CrumbContainer>
  28. ),
  29. },
  30. {label: t('Similar Issues')},
  31. ]}
  32. />
  33. </EventDrawerHeader>
  34. <EventNavigator>
  35. <Header>{t('Similar Issues')}</Header>
  36. </EventNavigator>
  37. <EventDrawerBody>
  38. <GroupSimilarIssues />
  39. </EventDrawerBody>
  40. </EventDrawerContainer>
  41. );
  42. }