groupEventHeader.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. };
  14. function GroupEventHeader({event, group, project}: GroupEventHeaderProps) {
  15. const organization = useOrganization();
  16. return (
  17. <DataSection>
  18. <GroupEventCarousel group={group} event={event} projectSlug={project.slug} />
  19. <StyledGlobalAppStoreConnectUpdateAlert
  20. project={project}
  21. organization={organization}
  22. />
  23. </DataSection>
  24. );
  25. }
  26. const StyledGlobalAppStoreConnectUpdateAlert = styled(GlobalAppStoreConnectUpdateAlert)`
  27. margin: ${space(0.5)} 0;
  28. `;
  29. export default GroupEventHeader;