()
| 266 | } |
| 267 | |
| 268 | export 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 | } |
no test coverage detected