import { NavLink, Outlet, useNavigate } from 'react-router-dom'; import { useAuth } from '../AuthContext'; const NAV = [ { to: '/admin', end: true, label: 'Overview' }, { to: '/admin/players', label: 'Players' }, { to: '/admin/cases', label: 'Cases' }, { to: '/admin/items', label: 'Items' }, { to: '/admin/categories', label: 'Categories' }, { to: '/admin/drops', label: 'Drops' }, ]; export default function AdminLayout() { const { user, logout } = useAuth(); const navigate = useNavigate(); return (