MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / useWorkspaces

Function useWorkspaces

ui/src/contexts/workspaces-context.ts:42–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40export const WorkspacesContext = createContext<WorkspacesContextValue | null>(null)
41
42export function useWorkspaces(): WorkspacesContextValue {
43 const ctx = useContext(WorkspacesContext)
44 if (!ctx) throw new Error('useWorkspaces must be used within WorkspacesProvider')
45 return ctx
46}

Callers 15

TabStripFunction · 0.90
IssuesBoardFunction · 0.90
IssueDetailFunction · 0.90
WorkspacesSidebarFunction · 0.90
WorkspaceAIConfigModalFunction · 0.90
CreateWorkspaceFormFunction · 0.90
ChatWorkspaceSectionFunction · 0.90
ChatLandingPageFunction · 0.90
DetailFunction · 0.90
TemplateCatalogPageFunction · 0.90
IssueSettingsPageFunction · 0.90
TemplateDetailPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected