"use strict";(self.webpackChunknft_rewards_marketplace=self.webpackChunknft_rewards_marketplace||[]).push([[8752],{58752:(n,e,l)=>{l.r(e),l.d(e,{default:()=>f});var t=l(16029),i=l(94294),a=l(20890),o=l(13208),r=l(84638),s=l(36314),c=l(93044),d=l(72791),h=l(85172),u=l(95678),p=l(33168),x=l(74244),v=l(80184);const f=({handleBtnOnClick:n,handleMenuOnClick:e,handleOnClose:l,label:f,open:j,currentValue:b,anchorEl:Z,data:g,defaultIcon:k,width:m})=>{const[y,C]=(0,d.useState)(g),{t:w}=(0,p.$)();return(0,d.useEffect)((()=>{C(g)}),[g]),(0,v.jsxs)(t.Z,{children:[(0,v.jsxs)(i.Z,{onClick:n,sx:{py:.7,width:m||"infinit",display:"flex",justifyContent:"center",alignItems:"center",gap:2},variant:"contained",color:"accent",endIcon:(0,v.jsx)(t.Z,{color:"secondary",mt:1.5,children:j?(0,v.jsx)(h.Z,{}):(0,v.jsx)(u.Z,{})}),children:[(0,v.jsx)(a.Z,{sx:{textTransform:"capitalize"},variant:"subtitle1",color:"secondary",children:w(f)}),(0,v.jsx)(a.Z,{sx:{color:"gray"},variant:"subtitle1",children:w(b)})]}),(0,v.jsx)(x.l,{elevation:1,PaperProps:{style:{borderRadius:"5px",width:330}},TransitionComponent:o.Z,anchorEl:Z,open:j,onClose:l,MenuListProps:{"aria-labelledby":"basic-button"},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:null===y||void 0===y?void 0:y.map(((n,l)=>(0,v.jsx)(r.Z,{onClick:()=>{e(n)},children:(0,v.jsxs)(s.Z,{direction:"row",gap:1,alignItems:"center",children:[null!==n&&void 0!==n&&n.logo?(0,v.jsx)(c.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)(a.Z,{variant:"subtitle1",fontWeight:400,children:w(null===n||void 0===n?void 0:n.display)})]})},l)))})]})}}}]);
//# sourceMappingURL=8752.ce7687dc.chunk.js.map