// 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 (
{/* Early access bar */}
Early Access Beta You're using an early-access prototype of The Armory. Data, pricing, and available parts are still evolving.
Early-access prototype. Data and pricing may change.
{/* Main nav row */}
{/* Left: Brand / Home */} Battl Builder {/* Center: main nav (Builder / Admin) */} {/* Right side actions */}
{/* Search placeholder */} {loading ? ( Checking session… ) : isAuthenticated ? ( <> {user.displayName || user.email} ) : ( <> Log In Join Beta )}
); }