nextauth working.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
'use client';
|
||||
|
||||
import { usePathname } from 'next/navigation';
|
||||
import Navbar from './Navbar';
|
||||
|
||||
export default function NavigationWrapper() {
|
||||
const pathname = usePathname();
|
||||
const isAccountPage = pathname?.startsWith('/account');
|
||||
|
||||
if (isAccountPage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <Navbar />;
|
||||
}
|
||||
Reference in New Issue
Block a user