"use strict";(self.webpackChunknft_rewards_marketplace=self.webpackChunknft_rewards_marketplace||[]).push([[8978],{88978:(n,e,l)=>{l.r(e),l.d(e,{default:()=>f});var i=l(16029),o=l(13400),t=l(13208),a=l(84638),r=l(36314),s=l(93044),d=l(20890),c=l(46557),h=l(72791),u=l(74244),p=l(33168),v=l(80184);const f=({handleBtnOnClick:n,handleMenuOnClick:e,handleOnClose:l,open:f,defaultIcon:k,anchorEl:b,data:x})=>{const{t:C}=(0,p.$)(),[j,Z]=(0,h.useState)(x);return(0,h.useEffect)((()=>{Z(x)}),[x]),(0,v.jsxs)(i.Z,{children:[(0,v.jsx)(o.Z,{onClick:n,variant:"contained",children:(0,v.jsx)(c.Z,{})}),(0,v.jsx)(u.l,{elevation:1,PaperProps:{style:{borderRadius:"5px",width:330}},TransitionComponent:t.Z,anchorEl:b,open:f,onClose:l,MenuListProps:{"aria-labelledby":"basic-button"},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:null===j||void 0===j?void 0:j.map((n=>(0,v.jsx)(a.Z,{onClick:()=>{e(n)},children:(0,v.jsxs)(r.Z,{direction:"row",gap:1,alignItems:"center",children:[null!==n&&void 0!==n&&n.logo?(0,v.jsx)(s.Z,{src:null===n||void 0===n?void 0:n.logo,alt:null===n||void 0===n?void 0:n.display}):k,(0,v.jsx)(d.Z,{variant:"subtitle1",fontWeight:400,children:C(null===n||void 0===n?void 0:n.display)})]})})))})]})}}}]);
//# sourceMappingURL=8978.658114f4.chunk.js.map