Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
import { useContext } from 'react'
import { ChatComposerStateContext } from './context'
import type { ChatComposerStateContextValue } from './types'
export function useChatComposerStateContext(): ChatComposerStateContextValue {
const ctx = useContext(ChatComposerStateContext)
if (!ctx)
throw new Error('useChatComposerStateContext must be used within ChatComposerStateProvider')
return ctx
}