import {Fragment} from 'react'; import type {Location} from 'history'; import {HeaderTitleLegend} from 'sentry/components/charts/styles'; import QuestionTooltip from 'sentry/components/questionTooltip'; import {t, tct} from 'sentry/locale'; import type {OrganizationSummary} from 'sentry/types/organization'; import type {ViewProps} from '../../../types'; import {SpanOperationBreakdownFilter} from '../../filter'; import Content from './content'; type Props = ViewProps & { currentFilter: SpanOperationBreakdownFilter; location: Location; organization: OrganizationSummary; queryExtras?: Record; totalCount?: number | null; }; function LatencyChart({currentFilter, ...props}: Props) { const header = ( {currentFilter === SpanOperationBreakdownFilter.NONE ? t('Duration Distribution') : tct('Span Operation Distribution - [operationName]', { operationName: currentFilter, })} ); return ( {header} ); } export default LatencyChart;