var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
import { StyledFont12, StyledFont14 } from 'ui/common';
import { parseTimeToUtc, timeAgo } from 'utils';
import { Tooltip, Box } from '@chakra-ui/react';
var Time = function (_a) {
    var className = _a.className, second = _a.second;
    return (_jsx(Tooltip, __assign({ hasArrow: true, bg: "#fff", placement: "top", label: _jsx(Box, __assign({ p: "2" }, { children: _jsx(StyledFont12, { children: parseTimeToUtc(second) }) })) }, { children: _jsx(StyledFont14, __assign({ nowrap: true, className: className }, { children: timeAgo(second) })) })));
};
export default Time;
