import {ExceptionType, ExceptionValue, PlatformType} from 'sentry/types'; import Exception from './exception'; import Stacktrace from './stackTrace'; type ExceptionProps = React.ComponentProps; type Props = Pick< ExceptionProps, | 'stackType' | 'stackView' | 'projectId' | 'event' | 'newestFirst' | 'groupingCurrentLevel' | 'hasHierarchicalGrouping' > & { exception?: ExceptionType; stacktrace?: ExceptionValue['stacktrace']; }; function CrashContent({ event, stackView, stackType, newestFirst, projectId, groupingCurrentLevel, hasHierarchicalGrouping, exception, stacktrace, }: Props) { const platform = (event.platform ?? 'other') as PlatformType; if (exception) { return ( ); } if (stacktrace) { return ( ); } return null; } export default CrashContent;