import isNil from 'lodash/isNil'; import CrashContent from 'sentry/components/events/interfaces/crashContent'; import Pill from 'sentry/components/pill'; import Pills from 'sentry/components/pills'; import {t} from 'sentry/locale'; import {Event, Project, STACK_TYPE, STACK_VIEW, Thread} from 'sentry/types'; import NoStackTraceMessage from '../noStackTraceMessage'; type CrashContentProps = React.ComponentProps; type Props = { event: Event; newestFirst: boolean; projectId: Project['id']; stackTraceNotFound: boolean; stackType: STACK_TYPE; data?: Thread; stackView?: STACK_VIEW; } & Pick< CrashContentProps, 'exception' | 'stacktrace' | 'hasHierarchicalGrouping' | 'groupingCurrentLevel' >; const Content = ({ event, projectId, data, stackView, groupingCurrentLevel, stackType, newestFirst, exception, stacktrace, stackTraceNotFound, hasHierarchicalGrouping, }: Props) => (
{data && (!isNil(data?.id) || !!data?.name) && ( {!isNil(data.id) && } {!!data.name?.trim() && } {data.crashed ? t('yes') : t('no')} )} {stackTraceNotFound ? ( ) : ( )}
); export default Content;