groupSimilarIssuesTab.tsx 861 B

1234567891011121314151617181920212223242526
  1. import * as Layout from 'sentry/components/layouts/thirds';
  2. import GroupEventDetails, {
  3. type GroupEventDetailsProps,
  4. } from 'sentry/views/issueDetails/groupEventDetails/groupEventDetails';
  5. import GroupSimilarIssues from 'sentry/views/issueDetails/groupSimilarIssues/similarIssues';
  6. import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
  7. function GroupSimilarIssuesTab(props: GroupEventDetailsProps) {
  8. const hasStreamlinedUI = useHasStreamlinedUI();
  9. // TODO(streamlined-ui): Remove this component and point router to GroupEventDetails
  10. // Similar issues will open in a drawer
  11. if (hasStreamlinedUI) {
  12. return <GroupEventDetails {...props} />;
  13. }
  14. return (
  15. <Layout.Body>
  16. <Layout.Main fullWidth>
  17. <GroupSimilarIssues {...props} />
  18. </Layout.Main>
  19. </Layout.Body>
  20. );
  21. }
  22. export default GroupSimilarIssuesTab;