similarIssues.tsx 665 B

1234567891011121314151617181920212223
  1. import {Fragment} from 'react';
  2. import Feature from 'sentry/components/acl/feature';
  3. import {GroupRelatedIssues} from 'sentry/views/issueDetails/groupRelatedIssues';
  4. import SimilarStackTrace from './similarStackTrace';
  5. type Props = React.ComponentProps<typeof SimilarStackTrace>;
  6. function GroupSimilarIssues({project, ...props}: Props) {
  7. return (
  8. <Fragment>
  9. <Feature features="related-issues">
  10. <GroupRelatedIssues {...props} />
  11. </Feature>
  12. <Feature features="similarity-view" project={project}>
  13. <SimilarStackTrace project={project} {...props} />
  14. </Feature>
  15. </Fragment>
  16. );
  17. }
  18. export default GroupSimilarIssues;