import type {RouteComponentProps} from 'react-router'; import * as Layout from 'sentry/components/layouts/thirds'; import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; import {t} from 'sentry/locale'; import type {Organization} from 'sentry/types/organization'; import useProjects from 'sentry/utils/useProjects'; import withOrganization from 'sentry/utils/withOrganization'; import EventDetailsContent from './content'; type Props = RouteComponentProps<{}, {eventSlug: string}> & { organization: Organization; }; function EventDetails(props: Props) { const {projects} = useProjects(); const getEventSlug = (): string => { const {eventSlug} = props.params; return typeof eventSlug === 'string' ? eventSlug.trim() : ''; }; const {organization, location, params} = props; const documentTitle = t('Performance Details'); const eventSlug = getEventSlug(); const projectSlug = eventSlug.split(':')[0]; return ( ); } export default withOrganization(EventDetails);