diff --git a/components/Navlinks.tsx b/components/Navlinks.tsx index 4341999..dbabd80 100644 --- a/components/Navlinks.tsx +++ b/components/Navlinks.tsx @@ -1,10 +1,9 @@ -"use client" +'use client' import { XMarkIcon } from "@heroicons/react/24/solid" - import { usePathname } from "next/navigation" - import { categories } from "../constants" import NavLink from "./NavLink" +import ThemeButton from "./ThemeButton" type Props = { navOpen: boolean, @@ -12,21 +11,21 @@ type Props = { className: string } - const Navlinks = ({ navOpen, handleClick, className }: Props) => { const pathName = usePathname(); const isActive = (path: string) => { return pathName?.split('/').pop() === path } return ( -