import { Trans } from "@lingui/react/macro" import { Tooltip } from "@mantine/core" import { Constants } from "app/constants" import dayjs from "dayjs" import { useNow } from "hooks/useNow" export function RelativeDate(props: { date: Date | number | undefined }) { const now = useNow(60 * 1000) if (!props.date) return N/A const date = dayjs(props.date) return ( {date.from(dayjs(now))} ) }