import {Fragment} from 'react';
import styled from '@emotion/styled';
import {Location} from 'history';
import {CommitRow} from 'sentry/components/commitRow';
import {EventEvidence} from 'sentry/components/events/eventEvidence';
import EventReplay from 'sentry/components/events/eventReplay';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {
Entry,
EntryType,
Event,
Group,
Organization,
Project,
SharedViewOrganization,
} from 'sentry/types';
import {isNotSharedOrganization} from 'sentry/types/utils';
import {objectIsEmpty} from 'sentry/utils';
import {EventContexts} from './contexts';
import {EventDevice} from './device';
import {EventAttachments} from './eventAttachments';
import {EventDataSection} from './eventDataSection';
import {EventEntry} from './eventEntry';
import {EventErrors} from './eventErrors';
import {EventExtraData} from './eventExtraData';
import {EventSdk} from './eventSdk';
import {EventTagsAndScreenshot} from './eventTagsAndScreenshot';
import {EventViewHierarchy} from './eventViewHierarchy';
import {EventGroupingInfo} from './groupingInfo';
import {EventPackageData} from './packageData';
import {EventRRWebIntegration} from './rrwebIntegration';
import {DataSection} from './styles';
import {SuspectCommits} from './suspectCommits';
import {EventUserFeedback} from './userFeedback';
type Props = {
location: Location;
/**
* The organization can be the shared view on a public issue view.
*/
organization: Organization | SharedViewOrganization;
project: Project;
className?: string;
event?: Event;
group?: Group;
isShare?: boolean;
showTagSummary?: boolean;
};
function EventEntries({
organization,
project,
location,
event,
group,
className,
isShare = false,
showTagSummary = true,
}: Props) {
const orgSlug = organization.slug;
const projectSlug = project.slug;
const orgFeatures = organization?.features ?? [];
if (!event) {
return (
{t('Latest Event Not Available')}