blob: 796ffa1c3a21d5ccf92d2b38f8e0ff9af9dc0e32 (
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
38
39
40
41
42
|
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
import Link from "next/link";
import { getMessages, type Locale } from "@/lib/localization";
import { Brand } from "./Brand";
import { HeaderMenu } from "./HeaderMenu";
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>
<HeaderMenu
closeLabel={navigation.closeMenu}
label={viget.navigationLabel}
menuLabel={navigation.menu}
>
<Link href="https://viget.progmasoft.com/#languages-title">
{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} />
</HeaderMenu>
</div>
</header>
);
}
|