{/* On a narrow phone the menu and buttons need the room; the logo alone stays. */}
ToBePlayed
{isAuthenticated && (
)}
{/* The badge hangs on the header's bottom edge at every width: in the row it would push the page sideways. */}
{isAuthenticated && viewingAs && (
{t('NAV.VIEW_AS.BADGE', {role: t(`ROLES.${viewingAs}`)})}
)}
{isAuthenticated && wallet && (
)}
{isAuthenticated && (
)}
{isAuthenticated ? (
open && setMenuOpenings((count) => count + 1)}>
{t('NAV.SETTINGS')}
{t('NAV.POINTS')}
{t('NAV.INBOX')}
{t('NAV.WHATS_NEW')}
{canCorrect(currentUser) && (
<>
{t('NAV.GAME_CATALOG')}
{t('NAV.LINK_QUEUE')}
{t('NAV.AUDIT_LOG')}
>
)}
{seesAdminPage && (
<>
{t('NAV.ADMIN')}
{shownCount > 0 && {shownCount}}
{t('NAV.ADMIN_HINTS')}
{t('NAV.ADMIN_NEWS')}
{t('NAV.ADMIN_BROADCASTS')}
>
)}
{isAdmin && (
{t('NAV.VIEW_AS.MENU')}
{ROLES.map((role) => (
switchRole(role)}>
{t(`ROLES.${role}`)}
))}
)}
{t('NAV.LANGUAGE')}: {i18n.language.toUpperCase()}
{t(isDarkMode ? 'NAV.LIGHT_MODE' : 'NAV.DARK_MODE')}
{t('MAIN.LOGOUT')}
) : (
<>
>
)}