MCPcopy Create free account
hub / github.com/Microck/opencode-studio / AppShell

Function AppShell

client-next/src/components/app-shell.tsx:192–215  ·  view source on GitHub ↗
({ children }: { children: React.ReactNode })

Source from the content-addressed store, hash-verified

190}
191
192export function AppShell({ children }: { children: React.ReactNode }) {
193 const { connected, loading } = useApp();
194 const isFirstLoad = useIsFirstLoad();
195
196 if (loading && !connected) {
197 return <LoadingState isFirstLoad={isFirstLoad} />;
198 }
199
200 if (!connected) {
201 return <DisconnectedLanding isFirstLoad={isFirstLoad} />;
202 }
203
204 return (
205 <div className="flex h-screen overflow-hidden bg-background">
206 <Sidebar />
207 <main id="main-content" className="flex-1 overflow-auto p-6 pb-8">
208 <div className="hover-lift-container h-full">
209 {children}
210 </div>
211 </main>
212 <DebugMenu />
213 </div>
214 );
215}

Callers

nothing calls this directly

Calls 2

useAppFunction · 0.90
useIsFirstLoadFunction · 0.85

Tested by

no test coverage detected