| 
									
										
										
										
											2025-04-16 16:18:20 +02:00
										 |  |  | "use client" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import { cn } from "@/lib/utils" | 
					
						
							|  |  |  | import Link from "next/link" | 
					
						
							|  |  |  | import { usePathname } from "next/navigation" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export function HeaderNav() { | 
					
						
							|  |  |  | 	const pathname = usePathname() | 
					
						
							|  |  |  | 	const isIconsActive = pathname === "/icons" || pathname.startsWith("/icons/") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	return ( | 
					
						
							| 
									
										
										
										
											2025-04-17 02:43:14 +02:00
										 |  |  | 		<nav className="flex md:flex-row flex-col md:items-center items-start gap-4 md:gap-6"> | 
					
						
							| 
									
										
										
										
											2025-04-16 16:18:20 +02:00
										 |  |  | 			<Link | 
					
						
							|  |  |  | 				href="/" | 
					
						
							| 
									
										
										
										
											2025-04-17 02:43:14 +02:00
										 |  |  | 				className={cn( | 
					
						
							|  |  |  | 					"text-sm font-medium transition-colors hover:text-rose-600 dark:hover:text-rose-400 cursor-pointer", | 
					
						
							|  |  |  | 					pathname === "/" && "text-primary font-semibold", | 
					
						
							|  |  |  | 				)} | 
					
						
							| 
									
										
										
										
											2025-04-16 16:18:20 +02:00
										 |  |  | 			> | 
					
						
							|  |  |  | 				Home | 
					
						
							|  |  |  | 			</Link> | 
					
						
							|  |  |  | 			<Link | 
					
						
							|  |  |  | 				prefetch | 
					
						
							|  |  |  | 				href="/icons" | 
					
						
							| 
									
										
										
										
											2025-04-17 02:43:14 +02:00
										 |  |  | 				className={cn( | 
					
						
							|  |  |  | 					"text-sm font-medium transition-colors hover:text-rose-600 dark:hover:text-rose-400 cursor-pointer", | 
					
						
							|  |  |  | 					isIconsActive && "text-primary font-semibold", | 
					
						
							|  |  |  | 				)} | 
					
						
							| 
									
										
										
										
											2025-04-16 16:18:20 +02:00
										 |  |  | 			> | 
					
						
							|  |  |  | 				Icons | 
					
						
							|  |  |  | 			</Link> | 
					
						
							|  |  |  | 		</nav> | 
					
						
							|  |  |  | 	) | 
					
						
							|  |  |  | } |