feat(shell): add NotificationBell to header
This commit is contained in:
parent
27b61415a6
commit
b5548abf37
1 changed files with 7 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import Link from 'next/link';
|
|||
import { usePathname, useRouter } from 'next/navigation';
|
||||
import { useSession } from './session-provider';
|
||||
import { TenantSwitcher } from './tenant-switcher';
|
||||
import { NotificationBell } from './notification-bell';
|
||||
import { NavIcon } from './nav-icon';
|
||||
import { STAGE_LABEL, countByStatus, visibleSections, type Role } from '../lib/navigation';
|
||||
|
||||
|
|
@ -144,9 +145,12 @@ export function DashboardShell({ children }: { children: React.ReactNode }) {
|
|||
<div className="flex flex-1 flex-col">
|
||||
<header className="flex h-16 items-center justify-between border-b border-ink-line px-6">
|
||||
<TenantSwitcher />
|
||||
<span className="rounded-full bg-paper-sunken px-2.5 py-1 text-xs font-medium capitalize text-ink-soft">
|
||||
{activeTenant.role}
|
||||
</span>
|
||||
<div className="flex items-center gap-3">
|
||||
<NotificationBell tenantId={activeTenant.tenantId} />
|
||||
<span className="rounded-full bg-paper-sunken px-2.5 py-1 text-xs font-medium capitalize text-ink-soft">
|
||||
{activeTenant.role}
|
||||
</span>
|
||||
</div>
|
||||
</header>
|
||||
<main className="flex-1 overflow-y-auto p-6">{children}</main>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue