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