1 import { hasInboxDesktopFeature } from '@proton/shared/lib/desktop/ipcHelpers';
2 import { useFlag } from '@proton/unleash';
4 import useIsInboxElectronApp from './useIsInboxElectronApp';
6 const useShowThemeSelection = () => {
7 const { isElectron } = useIsInboxElectronApp();
8 const inboxDesktopThemeSelectionFlag = useFlag('InboxDesktopThemeSelection');
9 return isElectron ? hasInboxDesktopFeature('ThemeSelection') && inboxDesktopThemeSelectionFlag : true;
12 export default useShowThemeSelection;