import { Button } from "@/components/ui/button"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { useAuth } from "@/hooks/use-auth"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Link, useLocation } from "wouter"; import { NotificationsBell } from "@/components/layout/notification-bell"; import { SidebarTrigger } from "@/components/ui/sidebar"; export function TopAppBar() { const { user, logoutMutation } = useAuth(); const [location, setLocation] = useLocation(); const handleLogout = () => logoutMutation.mutate(); const getInitials = (username: string) => username.substring(0, 2).toUpperCase(); return (
{/* both desktop + mobile triggers */}

My Dental Office Management

{user?.username} My Profile setLocation("/settings")}> Account Settings Log out
); }