{/* Logo Section */}
{!showExternalPortalChrome ? (
<>
{tenantConfig?.logo ? (
{/* Glow */}
{/* Footer Logo Wrapper */}
navigate(
showExternalPortalChrome
? COMPLAINT_RECORDS_PATH
: isComplaintContext
? "/complaints"
: "/",
)
}
title={t("nav.homePage")}
>
{
const fallback =
e.currentTarget.parentElement?.querySelector(
".footer-logo-fallback",
);
if (fallback) {
fallback.classList.remove("hidden");
}
e.currentTarget.remove();
}}
/>
{/* Fallback when logo fails to load */}
{tenantConfig?.organizationName
?.split(/[\s\-–—]+/)
.filter(Boolean)
.map((word) => word.charAt(0))
.join("")
.toUpperCase() || "SO"}
) : (
navigate(navigateTo)}
title={t("nav.homePage")}
>
SO
)}
navigate(navigateTo)}
title={t("nav.homePage")}
>
{tenantConfig?.organizationName ||
tenantConfig?.organizationName == ""
? tenantConfig?.organizationName
: t("landingPage.smartOffice")}
>
) : null}
{/* Desktop Navigation */}
{navItems.map((item) => (
{item.children ? (
setServicesOpen(true)}
onMouseLeave={() => setServicesOpen(false)}
>
{servicesOpen && (
{item.children.map((child) => (
handleNavClick(child)}
className="w-full flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-blue-50 hover:text-blue-700 transition-colors duration-200"
>
{getServiceIcon(child.id)}
{child.label}
))}
)}
) : (
)}
))}
{/* Desktop Sign Up Button */}
{!isAuthenticated && (
{/* Dark Mode Toggle */}
{isDarkMode ? (
) : (
)}
{t("landingPage.signIn")}
)}
{showExternalPortalChrome && (
)}
{/* Mobile Menu Button */}
setMobileMenuOpen(!mobileMenuOpen)}
className="inline-flex items-center justify-center p-2 rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary transition-colors duration-200"
aria-expanded="false"
whileTap={{ scale: 0.9 }}
>
Open main menu
{mobileMenuOpen ? (
) : (
)}