cacheHitMissCell.tsx 360 B

12345678910111213
  1. import {t} from 'sentry/locale';
  2. import type {IndexedResponse} from 'sentry/views/starfish/types';
  3. export function CacheHitMissCell(props: {hit: IndexedResponse['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. }