'use client' import { usePathname } from 'next/navigation' import Navbar from '@/components/Navbar' import LandingNavbar from '@/components/LandingNavbar' import { useAuthStore } from '@/store/authStore' const publicPages = ['/pricing', '/terms', '/privacy-policy'] export default function ConditionalLayout({ children, }: { children: React.ReactNode }) { const pathname = usePathname() const { isAuthenticated, isInitialized } = useAuthStore() const isAuthPage = pathname === '/login' || pathname === '/register' || pathname === '/forgot-password' || pathname === '/reset-password' || pathname?.startsWith('/auth/') const isLandingPage = pathname === '/' const isPublicPage = publicPages.includes(pathname || '') if (isAuthPage) { return (