+
+
+ {open && (
+
+ {LANGS.map((lang) => {
+ const active = lang === current;
+ return (
+
+ );
+ })}
+
+ )}
+
+ );
+}
diff --git a/web/src/sections/SiteHeader.tsx b/web/src/sections/SiteHeader.tsx
index 1f1724b..d33eb12 100644
--- a/web/src/sections/SiteHeader.tsx
+++ b/web/src/sections/SiteHeader.tsx
@@ -1,15 +1,11 @@
import { useTranslation } from 'react-i18next';
import { Brandmark } from '../components/Brandmark';
+import { LangSwitcher } from '../components/LangSwitcher';
import { appUrl } from '../lib/links';
-import { changeLanguage } from '../i18n';
-import { cn } from '../lib/utils';
-import type { Language } from '../i18n/language';
-const LANGS: Language[] = ['pl', 'en'];
-
-/** Pasek „systemowy” — sticky, jak topbar apki: znak, wersja, kotwice, język, CTA. */
+/** Pasek „systemowy” — sticky, jak topbar apki: znak, wersja, kotwice, CTA, język. */
export function SiteHeader() {
- const { t, i18n } = useTranslation(['nav', 'common']);
+ const { t } = useTranslation(['nav', 'common']);
const anchors = [
{ href: '#ekosystem', label: t('nav:anchors.ekosystem') },
{ href: '#slownik', label: t('nav:anchors.slownik') },
@@ -40,33 +36,13 @@ export function SiteHeader() {
))}
-