How to fix usePathname() can only be used in Client Components in React | DevErrors