Skip to content

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

413 B
Raw Blame
import { useCallback } from "react";
import { useUI } from "@processor/contexts/UIContext";

/**
 * SaaS processor: the settings page it hosts carries the same Plan section the
 * editor opens, so the footer's credits row lands both apps in one place.
 */
export function useOpenPlan(): (() => void) | null {
  const { openSettings } = useUI();
  return useCallback(() => openSettings("plan"), [openSettings]);
}