-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInternalNavbar.tsx
34 lines (33 loc) · 1.23 KB
/
InternalNavbar.tsx
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
import { cn } from "@/utils/cn";
import { Suspense, type ReactNode } from "react";
import { PendingInvitationCounter } from "./PendingInvitationCounter";
import { SidebarOpen } from "./SidebarOpen";
import { UserNav } from "./UserNav";
export async function InternalNavbar({ children }: { children: ReactNode }) {
return (
<header className="sticky top-0 w-full z-10 backdrop-blur bg-background">
<div
className={cn(
"h-full text-sm font-medium flex gap-2 mx-auto pl-6 pr-6 border-b dark:border-gray-700/50 py-3 w-full justify-between items-center",
)}
>
<SidebarOpen />
<Suspense>{children}</Suspense>
<div className="relative w-max flex items-center gap-2">
<div className="hidden lg:flex items-center gap-2">
<div className="flex items-center gap-2">
<PendingInvitationCounter />
</div>
{/* <AppAdminLink /> */}
</div>
<div className="w-px h-5 mr-4 ml-2 bg-neutral-200 dark:bg-neutral-700" />
<div className="relative w-max flex items-center space-x-3">
<Suspense>
<UserNav />
</Suspense>
</div>
</div>
</div>
</header>
);
}