1 import { hasInboxDesktopFeature } from '@proton/shared/lib/desktop/ipcHelpers';
2 import { isElectronApp } from '@proton/shared/lib/helpers/desktop';
3 import { useFlag } from '@proton/unleash';
5 export function useHasInboxDesktopInAppPayments() {
6 const hasInAppPaymentsFlag = useFlag('InboxDesktopInAppPayments');
7 return isElectronApp && hasInboxDesktopFeature('InAppPayments') && hasInAppPaymentsFlag;