groupEventHeader.tsx 913 B

1234567891011121314151617181920212223242526272829303132
  1. import styled from '@emotion/styled';
  2. import {DataSection} from 'sentry/components/events/styles';
  3. import {space} from 'sentry/styles/space';
  4. import type {Event} from 'sentry/types/event';
  5. import type {Group} from 'sentry/types/group';
  6. import type {Project} from 'sentry/types/project';
  7. import {GroupEventCarousel} from 'sentry/views/issueDetails/groupEventCarousel';
  8. type GroupEventHeaderProps = {
  9. event: Event;
  10. group: Group;
  11. project: Project;
  12. };
  13. function GroupEventHeader({event, group, project}: GroupEventHeaderProps) {
  14. return (
  15. <StyledDataSection>
  16. <GroupEventCarousel group={group} event={event} projectSlug={project.slug} />
  17. </StyledDataSection>
  18. );
  19. }
  20. const StyledDataSection = styled(DataSection)`
  21. padding: ${space(1)} ${space(2)} 0;
  22. @media (min-width: ${p => p.theme.breakpoints.medium}) {
  23. padding: ${space(1.5)} ${space(4)} 0;
  24. }
  25. `;
  26. export default GroupEventHeader;