"use client"; import React from "react"; import styles from "./menuLinks.module.css"; import Link from "next/link"; import { usePathname } from "next/navigation"; interface MenuLinksProps { item: { // icon: JSX.Element; title: string; path: any; }; } const MenuLinks: React.FC = ({ item }) => { const pathname = usePathname(); console.log(pathname); return ( {/* {item.icon} */} {item.title} ); }; export default MenuLinks;