'use client'; /** * TopNav — top navigation bar. * * Displays breadcrumbs (left), search bar (center), user info + action icons (right). * Fixed at the top with z-30, accounts for sidebar width on desktop. * * Requirements: 2.1, 2.3, 2.5, 2.6 */ import { useRightPanelStore } from '@/lib/stores/right-panel-store'; import { useLogoStore } from '@/lib/stores/logo-store'; import BreadcrumbBar from '@/components/layout/BreadcrumbBar'; import SearchBar from '@/components/layout/SearchBar'; export default function TopNav() { const toggleRightPanel = useRightPanelStore((s) => s.toggle); const logoUrl = useLogoStore((s) => s.logoUrl); const logoHeight = useLogoStore((s) => s.logoHeight); return (
{/* Left side — logo + breadcrumbs */}
{/* Logo — shows uploaded logo or default Divisi icon */}
{logoUrl ? ( Company logo ) : ( <>
Divisi )}
{/* Separator */}
{/* Center — search bar */}
{/* Right side — action icons */}
{/* Notifications bell icon */} {/* Right panel toggle icon */}
); }