groupEventHeader.tsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import styled from '@emotion/styled';
  2. import {DataSection} from 'sentry/components/events/styles';
  3. import GlobalAppStoreConnectUpdateAlert from 'sentry/components/globalAppStoreConnectUpdateAlert';
  4. import {space} from 'sentry/styles/space';
  5. import {Group, Project} from 'sentry/types';
  6. import {Event} from 'sentry/types/event';
  7. import useOrganization from 'sentry/utils/useOrganization';
  8. import {GroupEventCarousel} from 'sentry/views/issueDetails/groupEventCarousel';
  9. type GroupEventHeaderProps = {
  10. event: Event;
  11. group: Group;
  12. project: Project;
  13. hasReplay?: boolean;
  14. };
  15. function GroupEventHeader({event, group, project}: GroupEventHeaderProps) {
  16. const organization = useOrganization();
  17. return (
  18. <DataSection>
  19. <GroupEventCarousel group={group} event={event} projectSlug={project.slug} />
  20. <StyledGlobalAppStoreConnectUpdateAlert
  21. project={project}
  22. organization={organization}
  23. />
  24. </DataSection>
  25. );
  26. }
  27. const StyledGlobalAppStoreConnectUpdateAlert = styled(GlobalAppStoreConnectUpdateAlert)`
  28. margin: ${space(0.5)} 0;
  29. `;
  30. export default GroupEventHeader;