import {useRef} from 'react'; import {useTheme} from '@emotion/react'; import {Button} from 'sentry/components/button'; import useFeedbackWidget from 'sentry/components/feedback/widget/useFeedbackWidget'; import {IconGroup} from 'sentry/icons'; import {t, tct} from 'sentry/locale'; import {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/traceTree'; import {Row} from 'sentry/views/performance/traceDetails/styles'; export function NoDataDetails(props: TraceTreeNodeDetailsProps) { const theme = useTheme(); return (
{t('Empty')}
{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: } )}
); } function InlineFeedbackLink() { const linkref = useRef(null); const feedback = useFeedbackWidget({buttonRef: linkref}); return feedback ? ( {t('feedback')} ) : ( {t('feedback')} ); }