File size: 319 Bytes
a070805
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { RUNTIME_INACTIVE_STATES } from "#/types/agent-state";
import { useAgentState } from "#/hooks/use-agent-state";

export const useHandleRuntimeActive = () => {
  const { curAgentState } = useAgentState();

  const runtimeActive = !RUNTIME_INACTIVE_STATES.includes(curAgentState);

  return { runtimeActive };
};