import React, { type ReactNode } from 'react'; import { useAuth } from './AdminAuth'; const navItems = [ { href: '/admin', label: 'Dashboard', icon: 'D' }, { href: '/admin/homepage', label: 'Homepage', icon: '🏠' }, { href: '/admin/feeds', label: 'Feeds', icon: '📡' }, { href: '/admin/products', label: 'Products', icon: 'P' }, { href: '/admin/collections', label: 'Collections', icon: 'T' }, { href: '/admin/analytics', label: 'Analytics', icon: 'A' }, ]; function NavLink({ href, label, icon }: { href: string; label: string; icon: string }) { const active = typeof window !== 'undefined' && window.location.pathname === href; return ( {icon} {label} ); } export default function AdminLayout({ children, title }: { children: ReactNode; title: string }) { const { user, logout } = useAuth(); return (
{/* Sidebar */} {/* Main */}

{title}

{children}
); }