bbf419953e
* WIP - got comments on the user page * Remove number from chosen FR answer * Distinguish wining and losing FR answers * Show no answers text * Simplify get answer items logic * Show answer number * Show answer # when resolving * Fix import path * Add user's collated comments onto profile * Allow linking to comments/markets in profile * Allow preload of users contracts in profile * Remove unused check * Small code improvements
15 lines
383 B
TypeScript
15 lines
383 B
TypeScript
import { DateTimeTooltip } from './datetime-tooltip'
|
|
import { fromNow } from '../lib/util/time'
|
|
import React from 'react'
|
|
|
|
export function RelativeTimestamp(props: { time: number }) {
|
|
const { time } = props
|
|
return (
|
|
<DateTimeTooltip time={time}>
|
|
<span className="ml-1 whitespace-nowrap text-gray-400">
|
|
{fromNow(time)}
|
|
</span>
|
|
</DateTimeTooltip>
|
|
)
|
|
}
|