Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

393 B
Raw Blame
import { useConnectedServer } from "@editor/hooks/useConnectedServer";
import { useLocalProcessingOnly } from "@editor/hooks/useLocalProcessingOnly";

/** Automation requires a confirmed server connection and session. */
export function usePoliciesEnabled(): boolean {
  const connected = useConnectedServer();
  const localOnly = useLocalProcessingOnly();
  return connected && !localOnly;
}