import { Users } from "lucide-react"; import { useProfileScope } from "@/contexts/useProfileScope"; import { useI18n } from "@/i18n"; /** * App-wide amber banner shown while the global switcher targets a profile * OTHER than the dashboard's own — every management write (config, keys, * skills, MCPs, model) and new Chat sessions land in that profile. */ export function ProfileScopeBanner() { const { profile, currentProfile } = useProfileScope(); const { t } = useI18n(); if (!profile || profile === currentProfile) return null; return ( // mt-14 on mobile clears the fixed lg:hidden header (h-14, z-40) so the // scope banner — the main safety signal for scoped writes — is never // hidden behind it; lg:mt-0 restores desktop flow.
{( t.app.managingProfileBanner ?? "Managing profile “{name}” — config, keys, skills, MCPs, model, and new chats apply to that profile." ).replace("{name}", profile)}
); }