Skip to content

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

330 B
Raw Blame
import { useQuickNavHost } from "@editor/contexts/QuickNavHostContext";

/** The rail lives outside auth providers, so it reads the account published by the mounted app. */
export function useNotificationsAvailable(): boolean {
  const account = useQuickNavHost();
  return Boolean(account?.accountId) && !account?.isAnonymous;
}