Files
gunbuilder-next-tailwind/src/components/NavigationWrapper.tsx
T
2025-06-30 06:36:03 -04:00

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 />;
}