// components/TopNav.tsx "use client"; import Link from "next/link"; import { useAuth } from "@/context/AuthContext"; export function TopNav() { const { user, logout, loading } = useAuth(); const isAuthenticated = !!user; return (
{/* Main nav row */}
{/* Left: Brand / Home */} Battl Builder {/* Right side actions */}
{/* Search placeholder */} {loading ? ( Checking session… ) : isAuthenticated ? ( <> {user.displayName || user.email} ) : ( <> Log In Join Beta )}
); }