{navLinks.map(link => (
{link.label}
))}
{otherSites.map(site => (
{site.label}
))}
{/* Auth links are only known once the token has been validated —
rendering nothing here (instead of guessing "logged out") avoids
a Login/Register -> Dashboard/Logout flash on every load. */}
{!authLoading && authLinks.map(link =>
link.onClick ? (
) : (
{link.label}
)
)}