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