Skip to content

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

574 B
Raw Blame
// SaaS enterprise flag: derived from the plan tier (wallet-backed), not a local
// license bean. Shadows the self-hosted app-config version so Enterprise-only
// surfaces (e.g. Infrastructure > Audit) unlock for enterprise-plan tenants.

import { useTier } from "@processor/contexts/TierContext";
import type { EnterpriseState } from "@processor-proprietary/hooks/useEnterpriseEnabled";

export type { EnterpriseState };

export function useEnterpriseEnabled(): EnterpriseState {
  const { tier } = useTier();
  return { enabled: tier === "enterprise", loading: false };
}