Skip to content

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

1.1 KB
Raw Blame
import { TierProvider } from "@processor/contexts/TierContext";
import { UIProvider } from "@processor/contexts/UIContext";
import { PortalChrome } from "@processor/components/PortalChrome";
import { StartupPrompts } from "@editor/components/startup/StartupPrompts";
import { CheckoutProvider } from "@editor/contexts/CheckoutContext";
import UserbackWidget from "@editor/components/feedback/UserbackWidget";

/**
 * SaaS provider stack. There is no account-link layer: the signed-in account IS
 * the SaaS account (auth is handled upstream by PortalAuthBoundary) and the tier
 * comes from the wallet (see portal-saas/contexts/usePlanTier). Dropping
 * LinkProvider / AccountLinkProvider / the login modal here keeps the link
 * machinery out of the SaaS bundle entirely.
 *
 * <p>Checkout is mounted so the buy doors on Usage & Billing are the same on both editions.
 */
export function PortalProviders() {
  return (
    <TierProvider>
      <UIProvider>
        <CheckoutProvider>
          <StartupPrompts />
          <UserbackWidget />
          <PortalChrome />
        </CheckoutProvider>
      </UIProvider>
    </TierProvider>
  );
}