Files
profile-front/src/components/Header/Header.astro
Profile Profile 71d32defbc add logic exclude
2026-03-16 16:48:34 +03:00

32 lines
865 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
const { category, contentType } = Astro.props;
import Stores from './LazyStores.astro';
import MainMenu from '@components/Menus/MainMenu.astro';
const MENU_ID = 3340; // 103246 (бургер 1). 103247 (бургер 2 )
let menuItems = [];
---
<header class="header" itemscope itemtype="https://schema.org/WPHeader">
<div class="top-bar">
<a href="/"><img alt="Профиль" width="249" height="55" src="https://cdn.profile.ru/wp-content/themes/profile/assets/img/profile-logo-delovoy.svg"></a>
{category && (
<div class="header__subtitle">
{contentType === 'news' && (
<span class="header__news-badge"><a href="/news">Новости</a></span>
)}
<a href={`/${category.slug}`}>{category.name}</a>
</div>
)}
<Stores />
</div>
<MainMenu menuId={MENU_ID} />
</header>