import styled from '@emotion/styled'; import DateTime from 'sentry/components/dateTime'; import Tooltip from 'sentry/components/tooltip'; import {showPlayerTime} from './utils'; type Props = { relativeTime: number | undefined; timestamp: string | undefined; }; const PlayerRelativeTime = ({relativeTime, timestamp}: Props) => { if (!timestamp || !relativeTime) { return
; } return ( } disabled={!timestamp} skipWrapper disableForVisualTest underlineColor="gray300" showUnderline > {showPlayerTime(timestamp, relativeTime)} ); }; const Value = styled('p')` color: ${p => p.theme.subText}; font-size: ${p => p.theme.fontSizeSmall}; font-variant-numeric: tabular-nums; margin-bottom: 0; `; export default PlayerRelativeTime;