MCPcopy Create free account
hub / github.com/bytebase/bytebase / useIsSaaSMode

Function useIsSaaSMode

frontend/src/react/hooks/useAppState.ts:168–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168export function useIsSaaSMode() {
169 return useServerInfo()?.saas ?? false;
170}
171
172export function useAppFeature<T extends keyof AppFeatures>(feature: T) {
173 const value = useAppStore((state) => state.appFeatures[feature]);

Callers 2

useSidebarItemsFunction · 0.90
useRecentProjectsFunction · 0.85

Calls 1

useServerInfoFunction · 0.85

Tested by

no test coverage detected