import { ArrowLeft, Building2, ChevronDown, Menu, UserRound,LogOut } from 'lucide-react'; import { useState, type ReactNode } from 'react'; import { Brand } from './Brand'; import { Sidebar } from './Sidebar'; import {useNavigationOverlay} from './overlay'; export function AppShell({ page, tenantName, displayName, hostScoped = false, hostView = false, hostName, onBack, onNavigate, onSecurity,onLogout, children }: { page: string; tenantName: string; displayName: string; hostScoped?: boolean; hostView?: boolean; hostName?:string; onBack?:()=>void; onNavigate: (page: string) => void; onSecurity: () => void;onLogout?:()=>void; children: ReactNode }) { const [mobileNavOpen, setMobileNavOpen] = useState(false); useNavigationOverlay(mobileNavOpen,setMobileNavOpen); function navigate(pageName: string) { onNavigate(pageName); setMobileNavOpen(false); } return (