import styled from '@emotion/styled'; import Count from 'sentry/components/count'; import {Tooltip} from 'sentry/components/tooltip'; import {t, tct} from 'sentry/locale'; import type {Confidence} from 'sentry/types/organization'; import {defined} from 'sentry/utils'; type Props = { confidence?: Confidence; sampleCount?: number; }; export function ConfidenceFooter({sampleCount, confidence}: Props) { return ( {!defined(sampleCount) ? t('* Chart extrapolated from \u2026') : confidence === 'low' ? tct( '* Chart extrapolated from [sampleCount] samples ([insufficientSamples])', { sampleCount: , insufficientSamples: ( {t('insufficient for accuracy')} ), } ) : tct('* Chart extrapolated from [sampleCount] samples', { sampleCount: , })} ); } const InsufficientSamples = styled('span')` text-decoration: underline dotted ${p => p.theme.gray300}; `; const Container = styled('span')` color: ${p => p.theme.gray300}; font-size: ${p => p.theme.fontSizeSmall}; `;