Skip to content

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

315 B
Raw Blame
import { useAppConfig } from "@editor/contexts/AppConfigContext";

/** Whether server-side document classification can run on this deployment. */
export function useAiClassificationEnabled(): boolean {
  const { config } = useAppConfig();
  return Boolean(config?.aiEngineEnabled && config.aiFeatures?.classify);
}