2025-11-26 14:01:35 +07:00
|
|
|
import NotificationsButton from './notificationsButton';
|
|
|
|
|
import UserMenuButton from './userMenuButton';
|
|
|
|
|
import Link from 'next/link';
|
2025-12-10 16:39:13 +07:00
|
|
|
import LanguageSwitcher from '@/app/components/LanguageSwitcher';
|
2025-12-12 11:00:23 +07:00
|
|
|
import { useTranslations } from 'next-intl';
|
2026-01-23 15:43:05 +07:00
|
|
|
import BurgerMenu from '@/app/ui/navigation/burger-menu';
|
2025-11-26 14:01:35 +07:00
|
|
|
|
|
|
|
|
export default function HeaderPanel() {
|
2025-12-12 11:00:23 +07:00
|
|
|
const t = useTranslations("Global");
|
|
|
|
|
|
2025-11-26 14:01:35 +07:00
|
|
|
return (
|
|
|
|
|
<header className="header">
|
2026-01-23 15:43:05 +07:00
|
|
|
<BurgerMenu />
|
2025-11-26 14:01:35 +07:00
|
|
|
<div className="header-action">
|
2025-12-12 11:00:23 +07:00
|
|
|
<LanguageSwitcher />
|
2025-12-01 17:36:20 +07:00
|
|
|
<Link
|
|
|
|
|
href={'/pages/payment'}
|
|
|
|
|
className="tokens-balance"
|
|
|
|
|
>
|
2025-12-12 11:00:23 +07:00
|
|
|
<div className="tokens-wrapper" title={t('current-balance-of-protection')}>
|
2025-11-26 14:01:35 +07:00
|
|
|
<svg viewBox="0 0 24 24" fill="currentColor" style={{ width: "16px", height: "16px" }}>
|
|
|
|
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<span className="tokens-count">800</span>
|
2025-12-12 11:00:23 +07:00
|
|
|
<span className="tokens-label">
|
|
|
|
|
{t('tokens')}
|
|
|
|
|
</span>
|
2025-11-26 14:01:35 +07:00
|
|
|
</div>
|
2025-12-01 17:36:20 +07:00
|
|
|
</Link>
|
2025-11-26 14:01:35 +07:00
|
|
|
<NotificationsButton />
|
|
|
|
|
<UserMenuButton />
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
)
|
|
|
|
|
}
|