Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
397 B
Raw Blame
import { useContext } from 'react'
import { WorkspaceActionsContext } from './context'
import type { WorkspaceActionsContextValue } from './types'

export function useWorkspaceActionsContext(): WorkspaceActionsContextValue {
  const ctx = useContext(WorkspaceActionsContext)
  if (!ctx)
    throw new Error('useWorkspaceActionsContext must be used within WorkspaceActionsProvider')
  return ctx
}