Remove payments API routing initialization
[ProtonMail-WebClient.git] / packages / components / containers / desktop / useHasInboxDesktopInAppPayments.ts
bloba1a42ab9c5dc1986a1534f898ff0dce88de49e5c
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;