groupEventDetailsContent.tsx 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. import {Fragment, lazy, useMemo, useRef} from 'react';
  2. import styled from '@emotion/styled';
  3. import {usePrompt} from 'sentry/actionCreators/prompts';
  4. import {Button} from 'sentry/components/button';
  5. import {CommitRow} from 'sentry/components/commitRow';
  6. import ErrorBoundary from 'sentry/components/errorBoundary';
  7. import BreadcrumbsDataSection from 'sentry/components/events/breadcrumbs/breadcrumbsDataSection';
  8. import {EventContexts} from 'sentry/components/events/contexts';
  9. import {EventDevice} from 'sentry/components/events/device';
  10. import {EventAttachments} from 'sentry/components/events/eventAttachments';
  11. import {EventDataSection} from 'sentry/components/events/eventDataSection';
  12. import {EventEvidence} from 'sentry/components/events/eventEvidence';
  13. import {EventExtraData} from 'sentry/components/events/eventExtraData';
  14. import EventHydrationDiff from 'sentry/components/events/eventHydrationDiff';
  15. import {EventProcessingErrors} from 'sentry/components/events/eventProcessingErrors';
  16. import EventReplay from 'sentry/components/events/eventReplay';
  17. import {EventSdk} from 'sentry/components/events/eventSdk';
  18. import AggregateSpanDiff from 'sentry/components/events/eventStatisticalDetector/aggregateSpanDiff';
  19. import EventBreakpointChart from 'sentry/components/events/eventStatisticalDetector/breakpointChart';
  20. import {EventAffectedTransactions} from 'sentry/components/events/eventStatisticalDetector/eventAffectedTransactions';
  21. import EventComparison from 'sentry/components/events/eventStatisticalDetector/eventComparison';
  22. import {EventDifferentialFlamegraph} from 'sentry/components/events/eventStatisticalDetector/eventDifferentialFlamegraph';
  23. import {EventFunctionComparisonList} from 'sentry/components/events/eventStatisticalDetector/eventFunctionComparisonList';
  24. import {EventRegressionSummary} from 'sentry/components/events/eventStatisticalDetector/eventRegressionSummary';
  25. import {EventFunctionBreakpointChart} from 'sentry/components/events/eventStatisticalDetector/functionBreakpointChart';
  26. import {TransactionsDeltaProvider} from 'sentry/components/events/eventStatisticalDetector/transactionsDeltaProvider';
  27. import {EventTagsAndScreenshot} from 'sentry/components/events/eventTagsAndScreenshot';
  28. import {ScreenshotDataSection} from 'sentry/components/events/eventTagsAndScreenshot/screenshot/screenshotDataSection';
  29. import EventTagsDataSection from 'sentry/components/events/eventTagsAndScreenshot/tags';
  30. import {EventViewHierarchy} from 'sentry/components/events/eventViewHierarchy';
  31. import {EventGroupingInfo} from 'sentry/components/events/groupingInfo';
  32. import HighlightsDataSection from 'sentry/components/events/highlights/highlightsDataSection';
  33. import {HighlightsIconSummary} from 'sentry/components/events/highlights/highlightsIconSummary';
  34. import {Breadcrumbs} from 'sentry/components/events/interfaces/breadcrumbs';
  35. import {ActionableItems} from 'sentry/components/events/interfaces/crashContent/exception/actionableItems';
  36. import {actionableItemsEnabled} from 'sentry/components/events/interfaces/crashContent/exception/useActionableItems';
  37. import {CronTimelineSection} from 'sentry/components/events/interfaces/crons/cronTimelineSection';
  38. import {Csp} from 'sentry/components/events/interfaces/csp';
  39. import {DebugMeta} from 'sentry/components/events/interfaces/debugMeta';
  40. import {Exception} from 'sentry/components/events/interfaces/exception';
  41. import {Generic} from 'sentry/components/events/interfaces/generic';
  42. import {Message} from 'sentry/components/events/interfaces/message';
  43. import {AnrRootCause} from 'sentry/components/events/interfaces/performance/anrRootCause';
  44. import {SpanEvidenceSection} from 'sentry/components/events/interfaces/performance/spanEvidence';
  45. import {Request} from 'sentry/components/events/interfaces/request';
  46. import {StackTrace} from 'sentry/components/events/interfaces/stackTrace';
  47. import {Template} from 'sentry/components/events/interfaces/template';
  48. import {Threads} from 'sentry/components/events/interfaces/threads';
  49. import {UptimeDataSection} from 'sentry/components/events/interfaces/uptime/uptimeDataSection';
  50. import {EventPackageData} from 'sentry/components/events/packageData';
  51. import {EventRRWebIntegration} from 'sentry/components/events/rrwebIntegration';
  52. import {DataSection} from 'sentry/components/events/styles';
  53. import {SuspectCommits} from 'sentry/components/events/suspectCommits';
  54. import {EventUserFeedback} from 'sentry/components/events/userFeedback';
  55. import LazyLoad from 'sentry/components/lazyLoad';
  56. import Placeholder from 'sentry/components/placeholder';
  57. import {useHasNewTimelineUI} from 'sentry/components/timeline/utils';
  58. import {IconChevron} from 'sentry/icons';
  59. import {t} from 'sentry/locale';
  60. import {space} from 'sentry/styles/space';
  61. import type {Entry, EntryException, Event, EventTransaction} from 'sentry/types/event';
  62. import {EntryType, EventOrGroupType} from 'sentry/types/event';
  63. import type {Group} from 'sentry/types/group';
  64. import {IssueCategory, IssueType} from 'sentry/types/group';
  65. import type {Project} from 'sentry/types/project';
  66. import {defined} from 'sentry/utils';
  67. import {
  68. getConfigForIssueType,
  69. shouldShowCustomErrorResourceConfig,
  70. } from 'sentry/utils/issueTypeConfig';
  71. import {QuickTraceContext} from 'sentry/utils/performance/quickTrace/quickTraceContext';
  72. import QuickTraceQuery from 'sentry/utils/performance/quickTrace/quickTraceQuery';
  73. import {getReplayIdFromEvent} from 'sentry/utils/replays/getReplayIdFromEvent';
  74. import {useLocation} from 'sentry/utils/useLocation';
  75. import useOrganization from 'sentry/utils/useOrganization';
  76. import {ResourcesAndPossibleSolutions} from 'sentry/views/issueDetails/resourcesAndPossibleSolutions';
  77. import {SectionKey} from 'sentry/views/issueDetails/streamline/context';
  78. import {EventDetails} from 'sentry/views/issueDetails/streamline/eventDetails';
  79. import {InterimSection} from 'sentry/views/issueDetails/streamline/interimSection';
  80. import {TraceDataSection} from 'sentry/views/issueDetails/traceDataSection';
  81. import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
  82. const LLMMonitoringSection = lazy(
  83. () => import('sentry/components/events/interfaces/llm-monitoring/llmMonitoringSection')
  84. );
  85. export interface EventDetailsContentProps {
  86. group: Group;
  87. project: Project;
  88. event?: Event;
  89. }
  90. export function EventDetailsContent({
  91. group,
  92. event,
  93. project,
  94. }: Required<EventDetailsContentProps>) {
  95. const organization = useOrganization();
  96. const location = useLocation();
  97. const hasNewTimelineUI = useHasNewTimelineUI();
  98. const hasStreamlinedUI = useHasStreamlinedUI();
  99. const tagsRef = useRef<HTMLDivElement>(null);
  100. const eventEntries = useMemo(() => {
  101. const {entries = []} = event;
  102. return entries.reduce<{[key in EntryType]?: Entry}>((entryMap, entry) => {
  103. entryMap[entry.type] = entry;
  104. return entryMap;
  105. }, {});
  106. }, [event]);
  107. const projectSlug = project.slug;
  108. const hasReplay = Boolean(getReplayIdFromEvent(event));
  109. const mechanism = event.tags?.find(({key}) => key === 'mechanism')?.value;
  110. const isANR = mechanism === 'ANR' || mechanism === 'AppExitInfo';
  111. const showPossibleSolutionsHigher = shouldShowCustomErrorResourceConfig(group, project);
  112. const groupingCurrentLevel = group?.metadata?.current_level;
  113. const hasActionableItems = actionableItemsEnabled({
  114. eventId: event.id,
  115. organization,
  116. projectSlug,
  117. });
  118. const {
  119. isLoading: promptLoading,
  120. isError: promptError,
  121. isPromptDismissed,
  122. dismissPrompt,
  123. showPrompt,
  124. } = usePrompt({
  125. feature: 'issue_feedback_hidden',
  126. organization,
  127. projectId: project.id,
  128. });
  129. // default to show on error or isPromptDismissed === undefined
  130. const showFeedback = !isPromptDismissed || promptError || hasStreamlinedUI;
  131. const issueTypeConfig = getConfigForIssueType(group, group.project);
  132. return (
  133. <Fragment>
  134. {hasStreamlinedUI && <HighlightsIconSummary event={event} />}
  135. {hasActionableItems && !hasStreamlinedUI && (
  136. <ActionableItems event={event} project={project} isShare={false} />
  137. )}
  138. {hasStreamlinedUI && <TraceDataSection event={event} />}
  139. <StyledDataSection>
  140. {!hasStreamlinedUI && <TraceDataSection event={event} />}
  141. {!hasStreamlinedUI && (
  142. <SuspectCommits
  143. project={project}
  144. eventId={event.id}
  145. group={group}
  146. commitRow={CommitRow}
  147. />
  148. )}
  149. </StyledDataSection>
  150. {event.userReport && (
  151. <InterimSection
  152. title={t('User Feedback')}
  153. type={SectionKey.USER_FEEDBACK}
  154. actions={
  155. hasStreamlinedUI ? null : (
  156. <ErrorBoundary mini>
  157. <Button
  158. size="xs"
  159. icon={<IconChevron direction={showFeedback ? 'up' : 'down'} />}
  160. onClick={showFeedback ? dismissPrompt : showPrompt}
  161. title={
  162. showFeedback
  163. ? t('Hide feedback on all issue details')
  164. : t('Unhide feedback on all issue details')
  165. }
  166. disabled={promptError}
  167. busy={promptLoading}
  168. >
  169. {showFeedback ? t('Hide') : t('Show')}
  170. </Button>
  171. </ErrorBoundary>
  172. )
  173. }
  174. >
  175. {promptLoading ? (
  176. <Placeholder />
  177. ) : showFeedback ? (
  178. <EventUserFeedback
  179. report={event.userReport}
  180. orgSlug={organization.slug}
  181. issueId={group.id}
  182. showEventLink={false}
  183. />
  184. ) : null}
  185. </InterimSection>
  186. )}
  187. {event.type === EventOrGroupType.ERROR &&
  188. organization.features.includes('insights-addon-modules') &&
  189. event?.entries
  190. ?.filter((x): x is EntryException => x.type === EntryType.EXCEPTION)
  191. .flatMap(x => x.data.values ?? [])
  192. .some(({value}) => {
  193. const lowerText = value?.toLowerCase();
  194. return (
  195. lowerText &&
  196. (lowerText.includes('api key') || lowerText.includes('429')) &&
  197. (lowerText.includes('openai') ||
  198. lowerText.includes('anthropic') ||
  199. lowerText.includes('cohere') ||
  200. lowerText.includes('langchain'))
  201. );
  202. }) ? (
  203. <LazyLoad
  204. LazyComponent={LLMMonitoringSection}
  205. event={event}
  206. organization={organization}
  207. />
  208. ) : null}
  209. {group.issueCategory === IssueCategory.UPTIME && (
  210. <UptimeDataSection event={event} project={project} group={group} />
  211. )}
  212. {group.issueCategory === IssueCategory.CRON && (
  213. <CronTimelineSection
  214. event={event}
  215. organization={organization}
  216. project={project}
  217. />
  218. )}
  219. <HighlightsDataSection event={event} project={project} viewAllRef={tagsRef} />
  220. {showPossibleSolutionsHigher && (
  221. <ResourcesAndPossibleSolutionsIssueDetailsContent
  222. event={event}
  223. project={project}
  224. group={group}
  225. />
  226. )}
  227. <EventEvidence event={event} group={group} project={project} />
  228. {defined(eventEntries[EntryType.MESSAGE]) && (
  229. <EntryErrorBoundary type={EntryType.MESSAGE}>
  230. <Message event={event} data={eventEntries[EntryType.MESSAGE].data} />
  231. </EntryErrorBoundary>
  232. )}
  233. {defined(eventEntries[EntryType.EXCEPTION]) && (
  234. <EntryErrorBoundary type={EntryType.EXCEPTION}>
  235. <Exception
  236. event={event}
  237. data={eventEntries[EntryType.EXCEPTION].data}
  238. projectSlug={projectSlug}
  239. groupingCurrentLevel={groupingCurrentLevel}
  240. />
  241. </EntryErrorBoundary>
  242. )}
  243. {defined(eventEntries[EntryType.STACKTRACE]) && (
  244. <EntryErrorBoundary type={EntryType.STACKTRACE}>
  245. <StackTrace
  246. event={event}
  247. data={eventEntries[EntryType.STACKTRACE].data}
  248. projectSlug={projectSlug}
  249. groupingCurrentLevel={groupingCurrentLevel}
  250. />
  251. </EntryErrorBoundary>
  252. )}
  253. {defined(eventEntries[EntryType.THREADS]) && (
  254. <EntryErrorBoundary type={EntryType.THREADS}>
  255. <Threads
  256. event={event}
  257. data={eventEntries[EntryType.THREADS].data}
  258. projectSlug={projectSlug}
  259. groupingCurrentLevel={groupingCurrentLevel}
  260. />
  261. </EntryErrorBoundary>
  262. )}
  263. {isANR && (
  264. <QuickTraceQuery
  265. event={event}
  266. location={location}
  267. orgSlug={organization.slug}
  268. type={'spans'}
  269. skipLight
  270. >
  271. {results => {
  272. return (
  273. <QuickTraceContext.Provider value={results}>
  274. <AnrRootCause event={event} organization={organization} />
  275. </QuickTraceContext.Provider>
  276. );
  277. }}
  278. </QuickTraceQuery>
  279. )}
  280. {group.issueCategory === IssueCategory.PERFORMANCE && (
  281. <SpanEvidenceSection
  282. event={event as EventTransaction}
  283. organization={organization}
  284. projectSlug={project.slug}
  285. />
  286. )}
  287. <EventHydrationDiff event={event} group={group} />
  288. {issueTypeConfig.replays.enabled && (
  289. <EventReplay event={event} group={group} projectSlug={project.slug} />
  290. )}
  291. {defined(eventEntries[EntryType.HPKP]) && (
  292. <EntryErrorBoundary type={EntryType.HPKP}>
  293. <Generic
  294. type={EntryType.HPKP}
  295. data={eventEntries[EntryType.HPKP].data}
  296. meta={event._meta?.hpkp ?? {}}
  297. />
  298. </EntryErrorBoundary>
  299. )}
  300. {defined(eventEntries[EntryType.CSP]) && (
  301. <EntryErrorBoundary type={EntryType.CSP}>
  302. <Csp event={event} data={eventEntries[EntryType.CSP].data} />
  303. </EntryErrorBoundary>
  304. )}
  305. {defined(eventEntries[EntryType.EXPECTCT]) && (
  306. <EntryErrorBoundary type={EntryType.EXPECTCT}>
  307. <Generic
  308. type={EntryType.EXPECTCT}
  309. data={eventEntries[EntryType.EXPECTCT].data}
  310. />
  311. </EntryErrorBoundary>
  312. )}
  313. {defined(eventEntries[EntryType.EXPECTSTAPLE]) && (
  314. <EntryErrorBoundary type={EntryType.EXPECTSTAPLE}>
  315. <Generic
  316. type={EntryType.EXPECTSTAPLE}
  317. data={eventEntries[EntryType.EXPECTSTAPLE].data}
  318. />
  319. </EntryErrorBoundary>
  320. )}
  321. {defined(eventEntries[EntryType.TEMPLATE]) && (
  322. <EntryErrorBoundary type={EntryType.TEMPLATE}>
  323. <Template event={event} data={eventEntries[EntryType.TEMPLATE].data} />
  324. </EntryErrorBoundary>
  325. )}
  326. {hasNewTimelineUI ? (
  327. <BreadcrumbsDataSection event={event} group={group} project={project} />
  328. ) : defined(eventEntries[EntryType.BREADCRUMBS]) ? (
  329. <EntryErrorBoundary type={EntryType.BREADCRUMBS}>
  330. <Breadcrumbs
  331. data={eventEntries[EntryType.BREADCRUMBS].data}
  332. organization={organization}
  333. event={event}
  334. />
  335. </EntryErrorBoundary>
  336. ) : null}
  337. {!showPossibleSolutionsHigher && (
  338. <ResourcesAndPossibleSolutionsIssueDetailsContent
  339. event={event}
  340. project={project}
  341. group={group}
  342. />
  343. )}
  344. {defined(eventEntries[EntryType.DEBUGMETA]) && (
  345. <EntryErrorBoundary type={EntryType.DEBUGMETA}>
  346. <DebugMeta
  347. event={event}
  348. projectSlug={projectSlug}
  349. groupId={group?.id}
  350. data={eventEntries[EntryType.DEBUGMETA].data}
  351. />
  352. </EntryErrorBoundary>
  353. )}
  354. {defined(eventEntries[EntryType.REQUEST]) && (
  355. <EntryErrorBoundary type={EntryType.REQUEST}>
  356. <Request event={event} data={eventEntries[EntryType.REQUEST].data} />
  357. </EntryErrorBoundary>
  358. )}
  359. {hasStreamlinedUI ? (
  360. <EventTagsDataSection event={event} projectSlug={project.slug} ref={tagsRef} />
  361. ) : (
  362. <div ref={tagsRef}>
  363. <EventTagsAndScreenshot event={event} projectSlug={project.slug} />
  364. </div>
  365. )}
  366. <EventContexts group={group} event={event} />
  367. <EventExtraData event={event} />
  368. <EventPackageData event={event} />
  369. <EventDevice event={event} />
  370. <EventViewHierarchy event={event} project={project} />
  371. {hasStreamlinedUI && (
  372. <ScreenshotDataSection event={event} projectSlug={project.slug} />
  373. )}
  374. <EventAttachments event={event} projectSlug={project.slug} />
  375. <EventSdk sdk={event.sdk} meta={event._meta?.sdk} />
  376. {hasStreamlinedUI && (
  377. <EventProcessingErrors event={event} project={project} isShare={false} />
  378. )}
  379. {event.groupID && (
  380. <EventGroupingInfo
  381. projectSlug={project.slug}
  382. event={event}
  383. showGroupingConfig={
  384. organization.features.includes('set-grouping-config') &&
  385. 'groupingConfig' in event
  386. }
  387. group={group}
  388. />
  389. )}
  390. {!hasReplay && (
  391. <EventRRWebIntegration
  392. event={event}
  393. orgId={organization.slug}
  394. projectSlug={project.slug}
  395. />
  396. )}
  397. </Fragment>
  398. );
  399. }
  400. function ResourcesAndPossibleSolutionsIssueDetailsContent({
  401. event,
  402. project,
  403. group,
  404. }: Required<EventDetailsContentProps>) {
  405. return (
  406. <ErrorBoundary mini>
  407. <ResourcesAndPossibleSolutions event={event} project={project} group={group} />
  408. </ErrorBoundary>
  409. );
  410. }
  411. function PerformanceDurationRegressionIssueDetailsContent({
  412. group,
  413. event,
  414. project,
  415. }: Required<EventDetailsContentProps>) {
  416. return (
  417. <Fragment>
  418. <ErrorBoundary mini>
  419. <EventRegressionSummary event={event} group={group} />
  420. </ErrorBoundary>
  421. <ErrorBoundary mini>
  422. <EventBreakpointChart event={event} />
  423. </ErrorBoundary>
  424. <ErrorBoundary mini>
  425. <AggregateSpanDiff event={event} project={project} />
  426. </ErrorBoundary>
  427. <ErrorBoundary mini>
  428. <EventComparison event={event} project={project} />
  429. </ErrorBoundary>
  430. </Fragment>
  431. );
  432. }
  433. function ProfilingDurationRegressionIssueDetailsContent({
  434. group,
  435. event,
  436. project,
  437. }: Required<EventDetailsContentProps>) {
  438. const organization = useOrganization();
  439. return (
  440. <TransactionsDeltaProvider event={event} project={project}>
  441. <Fragment>
  442. <ErrorBoundary mini>
  443. <EventRegressionSummary event={event} group={group} />
  444. </ErrorBoundary>
  445. <ErrorBoundary mini>
  446. <EventFunctionBreakpointChart event={event} />
  447. </ErrorBoundary>
  448. {!organization.features.includes('continuous-profiling-compat') && (
  449. <ErrorBoundary mini>
  450. <EventAffectedTransactions event={event} group={group} project={project} />
  451. </ErrorBoundary>
  452. )}
  453. <ErrorBoundary mini>
  454. <DataSection>
  455. <b>{t('Largest Changes in Call Stack Frequency')}</b>
  456. <p>
  457. {t(`See which functions changed the most before and after the regression. The
  458. frame with the largest increase in call stack population likely
  459. contributed to the cause for the duration regression.`)}
  460. </p>
  461. h
  462. <EventDifferentialFlamegraph event={event} />
  463. </DataSection>
  464. </ErrorBoundary>
  465. <ErrorBoundary mini>
  466. <EventFunctionComparisonList event={event} group={group} project={project} />
  467. </ErrorBoundary>
  468. </Fragment>
  469. </TransactionsDeltaProvider>
  470. );
  471. }
  472. export default function GroupEventDetailsContent({
  473. group,
  474. event,
  475. project,
  476. }: EventDetailsContentProps) {
  477. const hasStreamlinedUI = useHasStreamlinedUI();
  478. if (!event) {
  479. return (
  480. <NotFoundMessage>
  481. <h3>{t('Latest event not available')}</h3>
  482. </NotFoundMessage>
  483. );
  484. }
  485. switch (group.issueType) {
  486. case IssueType.PERFORMANCE_DURATION_REGRESSION:
  487. case IssueType.PERFORMANCE_ENDPOINT_REGRESSION: {
  488. return (
  489. <PerformanceDurationRegressionIssueDetailsContent
  490. group={group}
  491. event={event}
  492. project={project}
  493. />
  494. );
  495. }
  496. case IssueType.PROFILE_FUNCTION_REGRESSION_EXPERIMENTAL:
  497. case IssueType.PROFILE_FUNCTION_REGRESSION: {
  498. return (
  499. <ProfilingDurationRegressionIssueDetailsContent
  500. group={group}
  501. event={event}
  502. project={project}
  503. />
  504. );
  505. }
  506. default: {
  507. return hasStreamlinedUI ? (
  508. <EventDetails event={event} group={group} project={project} />
  509. ) : (
  510. <EventDetailsContent group={group} event={event} project={project} />
  511. );
  512. }
  513. }
  514. }
  515. /**
  516. * This component is only necessary while the streamlined UI is not in place.
  517. * The FoldSection by default wraps its children with an ErrorBoundary, preventing content
  518. * from crashing the whole page if an error occurs, but EventDataSection does not do this.
  519. */
  520. function EntryErrorBoundary({
  521. children,
  522. type,
  523. }: {
  524. children: React.ReactNode;
  525. type: EntryType;
  526. }) {
  527. return (
  528. <ErrorBoundary
  529. customComponent={
  530. <EventDataSection type={type} title={type}>
  531. <p>{t('There was an error rendering this data.')}</p>
  532. </EventDataSection>
  533. }
  534. >
  535. {children}
  536. </ErrorBoundary>
  537. );
  538. }
  539. const NotFoundMessage = styled('div')`
  540. padding: ${space(2)} ${space(4)};
  541. `;
  542. const StyledDataSection = styled(DataSection)`
  543. padding: ${space(0.5)} ${space(2)};
  544. @media (min-width: ${p => p.theme.breakpoints.medium}) {
  545. padding: ${space(1)} ${space(4)};
  546. }
  547. &:empty {
  548. display: none;
  549. }
  550. `;