import { isOrglessPatientsHost } from '../utils/hostedMount'; import { useMyProxies } from './useMyProxies.tsx'; // Only the org-less patients host asks, so no other mount reads my-proxies for it. The host is fixed for // the life of the page, so the same branch runs on every render. const useReadsProxies = (): boolean => useMyProxies().proxies.length > 0; const useAsksNothing = (): boolean => false; export const useHelpsSomeoneOnOrglessHost = (): boolean => (isOrglessPatientsHost() ? useReadsProxies : useAsksNothing)();