import{j as e}from"./jsx-runtime.D_zvdyIk.js";import"./index.DIfZGIpv.js";import{u as r}from"./AdminAuth.CbzFS552.js";const t=[{href:"/admin",label:"Dashboard",icon:"📊"},{href:"/admin/revenue",label:"Revenue",icon:"💰"},{href:"/admin/performance",label:"Performance",icon:"🔥"},{href:"/admin/homepage",label:"Homepage",icon:"🏠"},{href:"/admin/feeds",label:"Feeds",icon:"📡"},{href:"/admin/feeds/health",label:"Feed Health",icon:"🩺"},{href:"/admin/products",label:"Products",icon:"📦"},{href:"/admin/collections",label:"Collections",icon:"📁"},{href:"/admin/analytics",label:"Analytics",icon:"📈"},{href:"/admin/emails",label:"Email",icon:"📧"},{href:"/admin/emails/editor",label:"Email Editor",icon:"✏️"},{href:"/admin/crons",label:"Crons",icon:"⏰"}];function o({href:a,label:s,icon:n}){const l=typeof window<"u"&&(window.location.pathname===a||a!=="/admin"&&window.location.pathname.startsWith(a));return e.jsxs("a",{href:a,className:`flex items-center gap-3 px-4 py-2.5 rounded-lg text-sm transition-colors
        ${l?"bg-[#00FF6A]/10 text-[#00FF6A]":"text-[#999] hover:text-[#F5F5F5] hover:bg-[#1A1A1A]"}`,children:[e.jsx("span",{className:"text-base",children:n}),e.jsx("span",{children:s})]})}function x({children:a,title:s}){const{user:n,logout:l}=r();return e.jsxs("div",{className:"flex min-h-screen bg-[#0A0A0A]",children:[e.jsxs("aside",{className:"w-60 border-r border-[#333] flex flex-col",children:[e.jsx("div",{className:"p-4 border-b border-[#333]",children:e.jsxs("a",{href:"/admin",className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[#00FF6A] font-bold text-lg font-[var(--font-display)]",children:"SneakerPicks"}),e.jsx("span",{className:"text-xs text-[#666] bg-[#1A1A1A] px-2 py-0.5 rounded",children:"Admin"})]})}),e.jsx("nav",{className:"flex-1 p-3 space-y-1",children:t.map(i=>e.jsx(o,{...i},i.href))}),e.jsxs("div",{className:"p-4 border-t border-[#333]",children:[e.jsx("div",{className:"text-xs text-[#666] mb-2",children:n?.email}),e.jsx("button",{onClick:l,className:"text-xs text-[#999] hover:text-[#FF3B3B] transition-colors",children:"Uitloggen"})]})]}),e.jsxs("main",{className:"flex-1 overflow-auto",children:[e.jsx("header",{className:"border-b border-[#333] px-8 py-4",children:e.jsx("h1",{className:"text-xl font-semibold text-[#F5F5F5]",children:s})}),e.jsx("div",{className:"p-8",children:a})]})]})}export{x as A};
