import{j as s,an as l,cD as o,T as e,v as m,r as i,O as x,ci as u}from"./main-D6SjkSWq.js";import{P as j}from"./player-page-suspsense-C3gAezeT.js";import{T as g,a as p,b as n}from"./tabs-BwrtVGjA.js";const b=["tracks","albums"];function k(){return s.jsx(j,{children:s.jsx(d,{})})}function d(){const a=l().tagName,t=o("/tag/:tagName/:tabName"),r=(t==null?void 0:t.params.tabName)||"tracks",c=b.indexOf(r)||0;return s.jsxs("div",{children:[s.jsx("h1",{className:"mb-40 text-3xl",children:r==="albums"?s.jsx(e,{message:"Most popular albums for #:tag",values:{tag:a}}):s.jsx(e,{message:"Most popular tracks for #:tag",values:{tag:a}})}),s.jsxs(g,{selectedTab:c,children:[s.jsxs(p,{children:[s.jsx(n,{elementType:m,to:`/tag/${a}/tracks`,children:s.jsx(e,{message:"Tracks"})}),s.jsx(n,{elementType:m,to:`/tag/${a}/albums`,children:s.jsx(e,{message:"Albums"})})]}),s.jsx("div",{className:"mt-24",children:s.jsx(i.Suspense,{fallback:s.jsx("div",{className:"flex min-h-124 items-center justify-center",children:s.jsx(u,{})}),children:s.jsx(x,{})})})]})]})}export{k as Component};
