"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("@argent/x-shared"),m=require("../../../providers/AddressNameProvider.cjs"),x=require("react"),A=require("react-i18next"),y=require("../../../logos/DappsLootboxLogo.cjs"),b=require("./ActivityRowSubtitle.cjs"),f=require("./getCounterparty.cjs"),q=({activity:t,suffix:c,networkId:d})=>{const{t:r}=A.useTranslation(),{transferSummary:a=[]}=t,u=a[0].sent,s=f.getCounterparty(t),p=x.useMemo(()=>{var e;return t.details.type==="payment"&&((e=t.details.context)==null?void 0:e.isLootboxReward)},[t]),i=m.useAddressName({networkId:d,address:s||""});if(s){let e="",o;return p?(e=r("activityAddressDescription.lootbox"),o=n.jsx(y,{mr:1,width:"14px",height:"14px"})):(e=i||l.formatTruncatedAddress(s),o=r(u?"activityAddressDescription.to":"activityAddressDescription.from")),n.jsxs(b.ActivityRowSubtitle,{display:"flex",alignItems:"center",children:[o," ",e,c]})}};exports.ActivityAddressDescription=q;
