import React from 'react' ; import { EuiToolTip } from '@elastic/eui' ; import { asAbsoluteDateTime , TimeUnit } from '../../../../common/utils/formatters/datetime' ; interface Props { /**
     * timestamp in milliseconds
     */ time : number ; timeUnit ? : TimeUnit ; } export function TimestampTooltip ( { time , timeUnit = 'milliseconds' } ) { const absoluteTimeLabel = asAbsoluteDateTime ( time , timeUnit ) ; return ( < EuiToolTip content = { absoluteTimeLabel } > < > { absoluteTimeLabel } < /> < /EuiToolTip>); }