'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Workflow } from 'lucide-react'; import { DarkModeToggle } from './dark-mode-toggle'; import { RoleSwitcher } from './role-switcher'; import { Breadcrumbs } from './breadcrumbs'; const NAV_LINKS = [ { label: 'Learner', href: '/', segment: 'learner' }, { label: 'Marketplace', href: '/marketplace', segment: 'marketplace' }, { label: 'Employer', href: '/employer', segment: 'employer' }, { label: 'Admin', href: '/admin', segment: 'admin' }, ]; /** Map the current pathname to the active surface segment. */ function activeSegment(pathname: string): string { if (pathname.startsWith('/marketplace')) return 'marketplace'; if (pathname.startsWith('/employer')) return 'employer'; if (pathname.startsWith('/admin')) return 'admin'; return 'learner'; } export function Header() { const pathname = usePathname() ?? '/'; const active = activeSegment(pathname); return (
Nextcraft
{/* Breadcrumb strip — rendered inside the sticky header so it stays visible and consistent across all four surfaces. */}
); }