import{j as r}from"./jsx-runtime-CO-XqC9s.js";import{E as d}from"./emote-UuyMFHvR.js";import{u as m}from"./useRoot-BQc5P1gq.js";import{a as c}from"./usePermission-9lv_inty.js";import{u as x}from"./components-DpMTR3IV.js";import{M as o}from"./minus-B8QxLZBa.js";import"./utils-BYVXdvyZ.js";import"./ToolTip-Be8zC4nb.js";import"./index-CfPgVkVq.js";import"./index-B3herkNE.js";import"./index-CWW5OZFH.js";import"./index-Cx08bkpf.js";import"./index-CbAtIyzQ.js";import"./index-C7jcDRIq.js";import"./index-DRFB6q6p.js";import"./index-3D2D3D7e.js";import"./index-9rJDnd-x.js";import"./index-B0voHGHU.js";import"./index-D1I5NLPV.js";import"./index-XSCdru0c.js";import"./index-IhLw0axj.js";import"./button-B_kz0OM1.js";import"./index-Bb4qSo10.js";import"./info-CeLOznFt.js";import"./createLucideIcon-BQDwd0P3.js";import"./external-link-BlGbprWb.js";import"./index-Jy6YZvdZ.js";function B(){var i,t,n,p;const{myEmotes:l}=x(),a=m(),e=c();return r.jsx("div",{className:"grid grid-cols-3 gap-8 p-10 h-full",children:r.jsxs("div",{className:"flex flex-col col-span-2 gap-4",children:[r.jsx("div",{className:"flex items-center pb-5",children:r.jsxs("div",{children:[r.jsx("span",{className:"font-bold text-md font-code",children:"Welcome back"}),r.jsx("h1",{className:"text-4xl font-bold text-transparent capitalize bg-clip-text bg-white bg-brand-background",style:{backgroundImage:(t=(i=a==null?void 0:a.auth)==null?void 0:i.Gradient)==null?void 0:t.Css},children:(n=a==null?void 0:a.auth)==null?void 0:n.Slug})]})}),(a==null?void 0:a.auth)&&r.jsxs("div",{className:"p-4",children:[r.jsxs("div",{id:"myPersonalEmotes",className:"col-span-1 flex flex-col items-start rounded-[10px]p-5 min-h-[250px]",children:[r.jsxs("h2",{className:"text-2xl font-bold font-code",children:["Your Personal Emotes (",(p=l.personal)==null?void 0:p.length,"/",e?3:0,")"]}),r.jsx("div",{className:"flex flex-wrap flex-grow gap-5 content-start items-start mt-5 w-full",children:l.personal.map(s=>r.jsx(d,{id:s.id,url:s.urls["4x"],name:s.name,nsfw:s.nsfw,owner:s.owner,Icon:(a==null?void 0:a.auth)&&o,personal:!0,approved:s.approved,isPrivate:s.private,adds:s.adds,className:"w-full"},s.id))})]}),r.jsxs("div",{id:"myChannelEmotes",className:"col-span-1 flex flex-col items-start rounded-[10px]p-5 flex-1",children:[r.jsxs("h2",{className:"text-2xl font-bold font-code",children:["Your Channel Emotes(",l.channel.length,"/",e?1e3:500,")"]}),r.jsx("div",{className:"flex flex-wrap flex-grow gap-5 content-start items-start mt-5 w-full",children:l.channel.map(s=>r.jsx(d,{id:s.id,url:s.urls["4x"],name:s.name,nsfw:s.nsfw,owner:s.owner,Icon:(a==null?void 0:a.auth)&&o,isPrivate:s.private,approved:s.approved,adds:s.adds,className:"w-full"},s.id))})]})]})]})})}export{B as default};
