Merge branch 'fix-typo-drive' into 'main'
[ProtonMail-WebClient.git] / packages / pass / hooks / useDeobfuscatedValue.ts
blob2db0bfaa09faa80babaad411fa699dfc29da064f
1 import { useMemo } from 'react';
3 import { type XorObfuscation, deobfuscate } from '@proton/pass/utils/obfuscate/xor';
5 export const useDeobfuscatedValue = (value: XorObfuscation) => useMemo(() => deobfuscate(value), [value.m, value.v]);