/** * Navigation Component * Main navigation header with active link highlighting */ 'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useComparison } from '@/hooks/useComparison'; import styles from './Navigation.module.css'; export function Navigation() { const pathname = usePathname(); const { selectedSchools } = useComparison(); const isActive = (path: string) => { if (path === '/') { return pathname === '/'; } return pathname.startsWith(path); }; return (
SchoolCompare
); }