import { ArrowUpDown, Cloud, Clock3, Folder as FolderIcon, KeyRound, Lock, LogOut, Send as SendIcon, Settings as SettingsIcon, Shield, ShieldUser } from 'lucide-preact'; import { Link } from 'wouter'; import AppMainRoutes from '@/components/AppMainRoutes'; import ThemeSwitch from '@/components/ThemeSwitch'; import type { AppMainRoutesProps } from '@/components/AppMainRoutes'; import { t } from '@/lib/i18n'; import type { Profile } from '@/lib/types'; interface AppAuthenticatedShellProps { profile: Profile | null; location: string; mobilePrimaryRoute: string; currentPageTitle: string; showSidebarToggle: boolean; sidebarToggleTitle: string; settingsAccountRoute: string; importRoute: string; isImportRoute: boolean; darkMode: boolean; themeToggleTitle: string; onLock: () => void; onLogout: () => void; onToggleTheme: () => void; mainRoutesProps: AppMainRoutesProps; } export default function AppAuthenticatedShell(props: AppAuthenticatedShellProps) { const routeAnimationKey = props.isImportRoute ? props.importRoute : props.location; return (
NodeWarden logo NodeWarden {props.currentPageTitle}
{props.profile?.email}
{props.showSidebarToggle && ( )}
); }