"use strict";(self.webpackChunknft_rewards_marketplace=self.webpackChunknft_rewards_marketplace||[]).push([[9537],{59537:(e,r,t)=>{t.r(r),t.d(r,{default:()=>u});var n=t(72791),o=t(95193),l=t(82337),a=t(35149),c=t(94294),s=t(20890),d=t(57689),i=t(95717),x=t(33168),p=t(77180),b=t(80184);const f=({darkMode:e,handleClickFilterTab:r,currentAuctionTab:t})=>{const{t:f}=(0,x.$)(),u=(0,a.u)(),h=(0,d.s0)(),k=(0,n.useRef)(),y=(0,o.Z)(u.breakpoints.down("md")),[j,m]=n.useState(t),w=e=>{m(e),h(`/explore/?type=${e}`),r(e)};return(0,b.jsx)(b.Fragment,{children:y?(0,b.jsx)(l.Z,{sx:{display:"flex",width:"100%",justifyContent:"space-between",overflowX:"scroll",gap:2,py:2},children:p.bd.map((r=>(0,b.jsx)(l.Z,{sx:{mb:3},children:(0,b.jsx)(l.Z,{bgcolor:j===r.type?{backgroundColor:"#000000"}:{backgroundColor:""+(e?"#171c26":"#ffffff")},onClick:()=>w(r.type),sx:{py:1,px:3,borderRadius:"4px"},children:(0,b.jsx)(s.Z,{variant:"body2",color:"secondary",sx:{fontSize:"12px",color:j===r.type?"white":"black"},children:f(`${r.text}`)})})},r.id)))}):(0,b.jsx)(i.Z,{ref:k,...p.K6,children:p.bd.map((r=>(0,b.jsx)(c.Z,{color:"secondary",onClick:()=>w(r.type),style:{textTransform:"capitalize"},children:(0,b.jsx)(s.Z,{sx:j===r.type?{borderBottom:"1px solid "+(e?"#ffffff":"#171c26")}:null,variant:"body2",component:"span",children:f(`${r.text}`)})},r.id)))})})},u=({darkMode:e,handleClickFilterTab:r,currentAuctionTab:t})=>{const n=(0,a.u)(),c=(0,o.Z)(n.breakpoints.down("md"));return(0,b.jsx)(b.Fragment,{children:c?(0,b.jsx)(l.Z,{sx:{my:1,width:"100%"},children:(0,b.jsx)(f,{darkMode:e,currentAuctionTab:t,handleClickFilterTab:r})}):(0,b.jsx)(l.Z,{sx:{mb:8},style:{overflow:"hidden",position:"relative"},children:(0,b.jsx)(l.Z,{alignContent:"center",xs:12,children:(0,b.jsx)(l.Z,{bgcolor:e?"#171c26":"#FFFFFF",sx:{textAlign:"center",py:1,px:4,borderRadius:"10px",justifyContent:"space-between",gap:2},children:(0,b.jsx)(f,{darkMode:e,currentAuctionTab:t,handleClickFilterTab:r})})})})})}}}]);
//# sourceMappingURL=9537.88fb2b05.chunk.js.map