diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx index 4f1a9a1..247c5d9 100644 --- a/src/app/components/navbar.tsx +++ b/src/app/components/navbar.tsx @@ -2,21 +2,25 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; -const link = (text: string, href: string) => { +const Navbar = () => { const path = usePathname() + const link = (text: string, href: string) => { + return ( + + {text} + + ) + } return ( - - {text} - +
+
+ {link("Home", "/")} + {link("Cases", "/cases")} + {link("Contact", "/contact")} +
+
) } -const Navbar = () => -
-
- {link("Home", "/")} - {link("Cases", "/cases")} - {link("Contact", "/contact")} -
-
+ export default Navbar