Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/web/components/ViGetHeader.tsx
blob: 1e22793e06939f49687724193dc3dc4840cb3576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1

import Link from "next/link";
import { getMessages, type Locale } from "@/lib/localization";
import { Brand } from "./Brand";
import { PreferenceControls } from "./PreferenceControls";

export function ViGetHeader({ locale }: { locale: Locale }) {
  const { navigation, viget } = getMessages(locale);
  return (
    <header className="site-header viget-header">
      <div className="shell header-inner">
        <div className="viget-brand-lockup">
          <Brand />
          <span>ViGet</span>
        </div>
        <nav className="primary-nav" aria-label={viget.navigationLabel}>
          <Link href="https://viget.progmasoft.com/langs/tala">
            {viget.packages}
          </Link>
          <Link href="https://viget.progmasoft.com/dslplugins/tazel">
            {viget.dslPlugins}
          </Link>
          <Link href="https://account.progmasoft.com/login">{viget.login}</Link>
          <Link
            className="button button-small"
            href="https://account.progmasoft.com/register"
          >
            {viget.register}
          </Link>
          <PreferenceControls locale={locale} labels={navigation} />
        </nav>
      </div>
    </header>
  );
}