Files
jovies/services/nextjs/components/navigation.tsx
Mayne0213 3c10907a97 INIT(app): initial commit
- Initialize project structure
- Add base configuration
2025-11-22 23:44:51 +09:00

24 lines
526 B
TypeScript

"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import styles from "../styles/navigation.module.css"
export default function Navigation() {
const path = usePathname();
return (
<nav className={styles.nav}>
<ul>
<li>
<Link href="/">Home</Link>
{path === "/" ? "🔥" : ""}
</li>
<li>
<Link href="/about-us">About Us</Link>
{path === "/about-us" ? "🔥" : ""}
</li>
</ul>
</nav>
);
}