import type { AppState } from "./types.ts"; export function isWorkspaceVisible( isMobile: boolean, state: Pick, ): boolean { if (!isMobile) return true; return !!state.sessionId && ( state.planEntries.length > 0 || state.gitFiles.length > 0 || state.specs.length > 0 || state.services.length > 0 ); }