MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / useChatState

Function useChatState

apps/start/src/components/chat/chat-context.tsx:268–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266}
267
268export function useChatState(): ChatStateValue {
269 const value = useContext(ChatContext);
270 if (!value) {
271 throw new Error('useChatState must be used inside <ChatStateProvider>');
272 }
273 return value;
274}

Callers 7

ActionCTAButtonFunction · 0.90
SidebarContainerFunction · 0.90
ChatDrawerHeaderFunction · 0.90
ChatRuntimeProviderFunction · 0.90
ModelPickerFunction · 0.90
ChatDrawerFunction · 0.90
SidebarChatComposerFunction · 0.90

Calls 1

useContextFunction · 0.85

Tested by

no test coverage detected