"use client"; import { usePathname } from "next/navigation"; const NO_NAV_PATHS = new Set(["/login", "/register", "/forgot-password", "/register/verify", "/reset-password"]); export default function ClientMain({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const hasNav = !NO_NAV_PATHS.has(pathname); return (
{children}
); }