import { useState } from 'react' import { NavLink } from 'react-router-dom' import { Command, Activity, FolderKanban, Monitor, Settings, Menu, X } from 'lucide-react' const navItems = [ { to: '/', icon: Command, label: 'Hub' }, { to: '/logs', icon: Activity, label: 'Logs' }, { to: '/projects', icon: FolderKanban, label: 'Projects' }, { to: '/sessions', icon: Monitor, label: 'Sessions' }, { to: '/settings', icon: Settings, label: 'Settings' }, ] export default function Layout({ children }: { children: React.ReactNode }) { const [expanded, setExpanded] = useState(false) const [mobileOpen, setMobileOpen] = useState(false) return (
{/* Desktop Nav Rail */} {/* Mobile Header + Bottom Nav */}
Control Center
{/* Mobile drawer */} {mobileOpen && (
{navItems.map((item) => ( setMobileOpen(false)} className={({ isActive }) => `flex items-center gap-3 px-4 py-3 rounded-lg ${ isActive ? 'bg-primary/10 text-primary' : 'text-on-surface-variant' }` } > {item.label} ))}
)}
{children}
{/* Mobile Bottom Nav */}
) }