15 lines
301 B
TypeScript
15 lines
301 B
TypeScript
'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 />;
|
|
}
|