import {useRef} from 'react'; import {useTheme} from '@emotion/react'; import useFeedbackWidget from 'sentry/components/feedback/widget/useFeedbackWidget'; import {IconGroup} from 'sentry/icons'; import {t, tct} from 'sentry/locale'; import { type SectionCardKeyValueList, TraceDrawerComponents, } from 'sentry/views/performance/newTraceDetails/traceDrawer/details/styles'; import type {TraceTreeNodeDetailsProps} from 'sentry/views/performance/newTraceDetails/traceDrawer/tabs/traceTreeNodeDetails'; import { makeTraceNodeBarColor, type NoDataNode, } from 'sentry/views/performance/newTraceDetails/traceModels/traceTree'; export function NoDataDetails(props: TraceTreeNodeDetailsProps) { const theme = useTheme(); const items: SectionCardKeyValueList = [ { key: 'data_quality', subject: t('Data quality'), value: tct( 'The cause of missing data could be misconfiguration or lack of instrumentation. Send us [feedback] if you are having trouble figuring this out.', {feedback: } ), }, ]; return (
{t('Empty')}
); } function InlineFeedbackLink() { const linkref = useRef(null); const feedback = useFeedbackWidget({buttonRef: linkref}); return feedback ? ( {t('feedback')} ) : ( {t('feedback')} ); }