-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathRootHeader.tsx
More file actions
39 lines (35 loc) · 925 Bytes
/
RootHeader.tsx
File metadata and controls
39 lines (35 loc) · 925 Bytes
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
// Copyright 2025 L3montree GmbH and the DevGuard Contributors.
// SPDX-License-Identifier: AGPL-3.0-or-later
"use client";
import {
ArrowRightEndOnRectangleIcon,
CogIcon,
PlusIcon,
} from "@heroicons/react/24/outline";
import { useInstanceSettings } from "@/hooks/useInstanceSettings";
import DynamicHeader from "./DynamicHeader";
export default function RootHeader() {
const instanceSettings = useInstanceSettings();
const menu = [
...(!instanceSettings?.singleOrganizationMode
? [
{
title: "Create Organization",
href: "/setup",
Icon: PlusIcon,
},
]
: []),
{
title: "Join Organization",
href: "/join",
Icon: ArrowRightEndOnRectangleIcon,
},
{
title: "User-Settings",
href: "/user-settings",
Icon: CogIcon,
},
];
return <DynamicHeader z={1} Title={null} menu={menu} />;
}