"use client" /** * UtilityBarSchoolSwitcher — avatar-only school/program (or site/location) * scope picker for the full-width `utility-bar` shell layout. * * Sits in the trailing identity cluster next to `UtilityUserMenu` (same * size-8 avatar footprint). Labels live in the tooltip + dropdown — not * on the trigger — so the bar stays quiet. * * Menu body and state are shared with the sidebar switcher and the products * home — see `components/scope-switcher-menu.tsx`. */ import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, SHELL_IDENTITY_MENU_SURFACE_CLASS, } from "@/components/ui/dropdown-menu" import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip" import { utilityBarActionButtonClass } from "@/components/utility-bar-chrome" import { ScopeSwitcherMenuBody, useScopeSwitcher, } from "@/components/scope-switcher-menu" import { useProduct, type Product } from "@/contexts/product-context" import { cn } from "@/lib/utils" export function UtilityBarSchoolSwitcher() { const { product } = useProduct() return } function UtilityBarSchoolSwitcherInner({ product }: { product: Product }) { const scope = useScopeSwitcher(product) return ( {scope.child.name} · {scope.parent.name} ) }