Skip to content

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

534 B
Raw Blame
import type { ReactNode } from "react";
import { LicenseProvider as InstalledLicenseProvider } from "@editor-proprietary/contexts/LicenseContext";
export {
  useLicense,
  useOptionalLicense,
} from "@editor-proprietary/contexts/LicenseContext";

/** SaaS checkout shares the context contract without accessing the host's installation licence. */
export function LicenseProvider({ children }: { children: ReactNode }) {
  return (
    <InstalledLicenseProvider enabled={false}>
      {children}
    </InstalledLicenseProvider>
  );
}