diff --git a/src/App.tsx b/src/App.tsx index a31d474..8bb897e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -28,6 +28,7 @@ const V4VView = lazy(() => import("./components/v4v/V4VView").then(m => ({ defau const DebugPanel = lazy(() => import("./components/shared/DebugPanel").then(m => ({ default: m.DebugPanel }))); const HelpModal = lazy(() => import("./components/shared/HelpModal").then(m => ({ default: m.HelpModal }))); import { useUIStore } from "./stores/ui"; +import { useUserStore } from "./stores/user"; import { getTheme, applyTheme } from "./lib/themes"; import { useUpdater } from "./hooks/useUpdater"; import { useKeyboardShortcuts } from "./hooks/useKeyboardShortcuts"; @@ -55,6 +56,16 @@ function UpdateBanner() { ); } +function ReadOnlyBanner() { + const loggedIn = useUserStore((s) => s.loggedIn); + if (loggedIn) return null; + return ( +