Skip to content

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

501 B
Raw Blame
import { useLink } from "@processor/contexts/LinkContext";

/**
 * Whether the portal is authorized against a SaaS billing account — the gate the
 * procurement/checkout flow uses. Self-hosted flavor: true once the instance has
 * linked its SaaS account. The SaaS build shadows this file to return true
 * unconditionally: the signed-in account IS the SaaS account, so there is no link
 * step and nothing to gate on.
 */
export function usePortalLinked(): boolean {
  return useLink().isLinked;
}