Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / hooks / useOfflineSupported.ts
blob92ddb22a9c9fd676f30e54f7a957817a06e8cf3a
1 import { useFeatureFlag } from '@proton/pass/hooks/useFeatureFlag';
2 import { PassFeature } from '@proton/pass/types/api/features';
4 export const useOfflineSupported = () => {
5     const offlineModeEnabled = useFeatureFlag(PassFeature.PassWebOfflineMode);
7     if (OFFLINE_SUPPORTED) {
8         if (BUILD_TARGET === 'web') return offlineModeEnabled;
9         else if (EXTENSION_BUILD) return false;
10         else return true;
11     }
13     return false;