"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";

const NavigationBar = () => {
  const pathname = usePathname();
  return (
    <nav>
      <ul className="flex flex-row-reverse items-center gap-12">
        <li className="bg-(--primary) text-white py-5 px-12 rounded-full">
          Login
        </li>
        <li>
          <Link
            href="/contact-us"
            className={`py-5 rounded-full ${
              pathname === "/contact-us" && "text-(--primary) font-semibold"
            }`}>
            Contact us
          </Link>
        </li>
        <li>
          <Link
            href="/"
            className={`py-5 rounded-full ${
              pathname === "/" && "text-(--primary) font-semibold"
            }`}>
            Home
          </Link>
        </li>
      </ul>
    </nav>
  );
};

export default NavigationBar;
