'use client'
import { useState } from 'react'
import { useLocale, useTranslations } from 'next-intl'
import { Link } from '@/i18n/navigation'
const SERVER_NAME = 'NovaWoW'
/**
* Cabecera / barra de navegación — réplica EXACTA del partial Django
* `home/templates/partials/header.html` con las clases del tema real
* (nav-wrapper, nav-bar, nav-dropdown...). Los enlaces internos que ya
* existen en web-next usan (next-intl); el resto se mantiene igual
* que en Django. El toggle móvil replica `nwNavBar()` de nw-scripts.js.
*/
export function SiteHeader({
loggedIn,
accountLabel,
realmName,
realmHref,
playersHref,
}: {
loggedIn: boolean
accountLabel: string
realmName: string
realmHref: string
playersHref: string
}) {
const locale = useLocale()
const t = useTranslations('UI')
const [open, setOpen] = useState(false)
return (