Update selected item color in Pass menu
[ProtonMail-WebClient.git] / packages / pass / hooks / useFeatureFlag.ts
blobc57e3bd8bc59af7e1cdac1bc82c6d6b7334834cb
1 import { useSelector } from 'react-redux';
3 import { selectFeatureFlag } from '@proton/pass/store/selectors';
4 import type { PassFeature } from '@proton/pass/types/api/features';
6 export const useFeatureFlag = (feature: PassFeature): boolean => useSelector(selectFeatureFlag(feature));