(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[63],{927:function(e,t,n){"use strict";var a=n(19),c=n(1),r=n(0),i=n(55),u=n(1085),s=n(163),f=n(9);var l=function(e){var t=Object(r.useState)(new Date),n=Object(a.a)(t,2),i=n[0],l=n[1],b=function(){return+i-+e.time<=2592e6},j=Object(r.useState)(b()),o=Object(a.a)(j,2),O=o[0],v=o[1];Object(r.useEffect)((function(){if(O){var e=setInterval((function(){return l(new Date)}),3e4);return function(){return clearInterval(e)}}}),[O]),Object(r.useEffect)((function(){b()!==O&&v(!O)}),[i,e.time]);var m,p,w=Object(s.a)(e.time,e.dateOnly)[1];return Object(c.jsx)(c.Fragment,{children:O?Object(c.jsx)("span",{title:w,children:u.a((m=e.time,p=i,m>=p?new Date(+m-Math.min(+m-+p+1,6e4)):m),f.a.locale,{relativeDate:i})}):w})};l=Object(i.a)(l),t.a=l}}]);
//# sourceMappingURL=63.39b95bb7.chunk.js.map