diff --git a/src/app/components/href-button.tsx b/src/app/components/href-button.tsx index e748239..5c65a43 100644 --- a/src/app/components/href-button.tsx +++ b/src/app/components/href-button.tsx @@ -1,3 +1,4 @@ +import { cn } from "@/common/utils"; import Link from "next/link"; import { ReactElement } from "react"; @@ -17,11 +18,16 @@ type ButtonProps = { * open the link in a new tab. */ openInNewTab?: boolean; + + /** + * The class names for the button. + */ + className?: string; }; -export function HrefButton({ title, url, openInNewTab }: ButtonProps): ReactElement { +export function HrefButton({ title, url, openInNewTab, className }: ButtonProps): ReactElement { return ( -
{title}
diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx index 1ecf173..c2516ec 100644 --- a/src/app/components/navbar.tsx +++ b/src/app/components/navbar.tsx @@ -1,4 +1,7 @@ +"use client"; + import Link from "next/link"; +import { usePathname } from "next/navigation"; import { ReactElement } from "react"; import { HrefButton } from "./href-button"; import Logo from "./logo"; @@ -30,6 +33,8 @@ const pages: Page[] = [ ]; export default function NavBar(): ReactElement { + const path = usePathname(); + return (