index.tsx 891 B

123456789101112131415161718192021222324252627282930
  1. import {RouteComponentProps} from 'react-router';
  2. import {Group, Organization, Project} from 'sentry/types';
  3. import {Event} from 'sentry/types/event';
  4. import useApi from 'sentry/utils/useApi';
  5. import withOrganization from 'sentry/utils/withOrganization';
  6. import {ReprocessingStatus} from '../utils';
  7. import GroupEventDetails from './groupEventDetails';
  8. export interface GroupEventDetailsProps
  9. extends RouteComponentProps<{groupId: string; eventId?: string}, {}> {
  10. event: Event;
  11. eventError: boolean;
  12. group: Group;
  13. groupReprocessingStatus: ReprocessingStatus;
  14. loadingEvent: boolean;
  15. onRetry: () => void;
  16. organization: Organization;
  17. project: Project;
  18. }
  19. export function GroupEventDetailsContainer(props: GroupEventDetailsProps) {
  20. const api = useApi();
  21. return <GroupEventDetails {...props} api={api} />;
  22. }
  23. export default withOrganization(GroupEventDetailsContainer);