MCPcopy Index your code
hub / github.com/GitbookIO/gitbook / useAIChatState

Function useAIChatState

packages/gitbook/src/components/AI/useAIChat.tsx:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 * Get the current state of the AI chat.
120 */
121export function useAIChatState(): AIChatState {
122 const state = zustand.useStore(globalState);
123 return state;
124}
125
126/**
127 * Provide the controller to interact with the AI chat.

Callers 6

AIChatControlButtonFunction · 0.90
AIChatFunction · 0.90
AIChatDynamicIconFunction · 0.90
ActionOpenAssistantFunction · 0.90
EmbeddableAIChatFunction · 0.90
useAIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected