cacheHitMissCell.tsx 368 B

12345678910111213
  1. import {t} from 'sentry/locale';
  2. import type {SpanIndexedResponse} from 'sentry/views/insights/types';
  3. export function CacheHitMissCell(props: {hit: SpanIndexedResponse['cache.hit']}) {
  4. const {hit} = props;
  5. if (hit === 'true') {
  6. return <span>{t('HIT')}</span>;
  7. }
  8. if (hit === 'false') {
  9. return <span>{t('MISS')}</span>;
  10. }
  11. return <span>--</span>;
  12. }