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;