import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, } from '@workspace/ui/components/navigation-menu'; import Link from 'next/link'; const navLinks = [ { href: '/', label: 'Home', icon: '🏠' }, { href: '/students', label: 'Students', icon: '🎓' }, { href: '/jobs', label: 'Jobs', icon: '💼' }, ]; export default function MainLayout({ children }: { children: React.ReactNode }) { // Helper to check active link (client-side only) const isActive = (href: string) => { if (typeof window === 'undefined') return false; if (href === '/') return window.location.pathname === '/'; return window.location.pathname.startsWith(href); }; return (
{/* Sidebar */} {/* Main content */}
{navLinks.map((link) => ( {link.label} ))}
{children}
); }