Files
defiQUG c94eb595f8
Some checks failed
CI / lint-and-test (push) Has been cancelled
Initial commit: add .gitignore and README
2026-02-09 21:51:53 -08:00

47 lines
1.3 KiB
TypeScript

"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils";
const navItems = [
{ label: "Dashboard", href: "/" },
{ label: "Receive", href: "/receive" },
{ label: "Send", href: "/send" },
{ label: "Transfer", href: "/transfer" },
{ label: "Approvals", href: "/approvals" },
{ label: "Activity", href: "/activity" },
{ label: "Settings", href: "/settings" },
];
export function Navigation() {
const pathname = usePathname();
return (
<nav className="bg-gray-900 border-b border-gray-800">
<div className="max-w-7xl mx-auto px-8">
<div className="flex items-center gap-8">
{navItems.map((item) => {
const isActive = pathname === item.href;
return (
<Link
key={item.href}
href={item.href}
className={cn(
"px-4 py-4 text-sm font-medium transition-colors border-b-2",
isActive
? "border-blue-500 text-blue-400"
: "border-transparent text-gray-400 hover:text-gray-200 hover:border-gray-700"
)}
>
{item.label}
</Link>
);
})}
</div>
</div>
</nav>
);
}