import {t} from 'sentry/locale'; import type {SpanIndexedResponse} from 'sentry/views/insights/types'; export function CacheHitMissCell(props: {hit: SpanIndexedResponse['cache.hit']}) { const {hit} = props; if (hit === 'true') { return {t('HIT')}; } if (hit === 'false') { return {t('MISS')}; } return --; }