import { Address , UserModel } from '@proton/shared/lib/interfaces' ; const getLikelyHasKeysToReactivate = ( user , addresses ) => { return ( user ?. Keys ?. some ( ( Key ) => ! Key . Active ) || addresses ?. some ( ( address ) => address . Keys ?. some ( ( Key ) => ! Key . Active ) ) ) ; } ; export default getLikelyHasKeysToReactivate ;