import { Bell, ChevronDown, PersonCircle } from 'react-bootstrap-icons'; import { Outlet, useLocation, Navigate } from 'react-router-dom'; import { AuthService } from '../../services'; import { getHrTitleDisplayName } from '../../shared'; import SideMenu from './menu'; import { Dropdown } from "react-bootstrap"; function Layout() { const location = useLocation(); const showMenu = location.pathname !== '/login' && location.pathname !== '/landing'; // Example: Hide menu on login page const userRaw = localStorage.getItem('user'); const user = userRaw ? JSON.parse(userRaw) : null; const displayTitle = getHrTitleDisplayName((user?.title || user?.roles?.[0] || '').toString()); const getLogoSuffix = () => { return (window.location.hostname.includes('worldshine2.mayo.llc') || window.location.hostname.includes('site2') || window.location.host.includes('ws2') ||window.location.hostname.includes('localhost')) ? "Care LLC" : ((window.location.hostname.includes('worldshine3.mayo.llc') ||window.location.hostname.includes('site3') || window.location.hostname.includes('ws3')) ? "Cloverleaf LLC" : "International LLC"); } return (