import{r as n,u as o,j as s}from"./index-ClCsMWbS.js";import{T as c}from"./TimeAgo-55eetS_D.js";const i=(e,t)=>{if(e)switch(t){case"ISO_8601":case"ISO_8601_local":return new Date(Date.parse(e));case"epoch":return new Date(e);case"disable":return;default:console.error(`Unknown last_seen type ${t}`);return}},p=n.memo(({lastSeen:e,config:t})=>{const{i18n:r}=o(),a=i(e,t);return a?s.jsx("span",{children:s.jsx(c,{datetime:a,locale:r.language})}):s.jsx("span",{children:"N/A"})});export{p as L};
