import React from 'react'; import { NavLink, Outlet, useNavigate } from 'react-router-dom'; import { LayoutDashboard, FolderOpen, GraduationCap, Gamepad2, LogOut } from 'lucide-react'; import { clearStoredSession } from '@/src/lib/session'; import { cn } from '@/src/lib/utils'; const NAV_ITEMS = [ { name: '总览', path: '/overview', icon: LayoutDashboard }, { name: '网盘', path: '/files', icon: FolderOpen }, { name: '教务', path: '/school', icon: GraduationCap }, { name: '游戏', path: '/games', icon: Gamepad2 }, ]; export function Layout() { const navigate = useNavigate(); const handleLogout = () => { clearStoredSession(); navigate('/login'); }; return (
{/* Animated Gradient Background */}
{/* Top Navigation */}
{/* Brand */}
Y
YOYUZH.XYZ Personal Portal
{/* Nav Links */} {/* User / Actions */}
{/* Main Content */}
); }