Client component cannot import async CampaignNotificationBellSlot directly; mirror CampaignMobileTopBar slot pattern to fix staff page hangs in e2e.
14 lines
623 B
TypeScript
14 lines
623 B
TypeScript
'use client'
|
|
|
|
import type { ReactNode } from 'react'
|
|
|
|
import { CampaignPageChromeDisplay } from '@/components/campaign/shell/CampaignPageChromeDisplay'
|
|
import { SidebarTrigger } from '@/components/ui/Sidebar'
|
|
|
|
export const CampaignDesktopHeader = ({ notificationBell }: { notificationBell?: ReactNode }) => (
|
|
<header className="hidden min-h-11 shrink-0 items-center gap-3 border-b border-border px-4 md:flex print:hidden">
|
|
<SidebarTrigger />
|
|
<CampaignPageChromeDisplay layout="desktop" className="flex-1" />
|
|
{notificationBell ? <div className="ml-auto shrink-0">{notificationBell}</div> : null}
|
|
</header>
|
|
)
|