1234567891011121314151617181920212223242526 |
- import * as Layout from 'sentry/components/layouts/thirds';
- import GroupEventDetails, {
- type GroupEventDetailsProps,
- } from 'sentry/views/issueDetails/groupEventDetails/groupEventDetails';
- import GroupSimilarIssues from 'sentry/views/issueDetails/groupSimilarIssues/similarIssues';
- import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
- function GroupSimilarIssuesTab(props: GroupEventDetailsProps) {
- const hasStreamlinedUI = useHasStreamlinedUI();
- // TODO(streamlined-ui): Remove this component and point router to GroupEventDetails
- // Similar issues will open in a drawer
- if (hasStreamlinedUI) {
- return <GroupEventDetails {...props} />;
- }
- return (
- <Layout.Body>
- <Layout.Main fullWidth>
- <GroupSimilarIssues {...props} />
- </Layout.Main>
- </Layout.Body>
- );
- }
- export default GroupSimilarIssuesTab;
|