Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / hooks / usePrimaryRecoverySecret.ts
blobe6c19235a6033d98829736ca950a83e08a2e0ba2
1 import { useUser } from '@proton/account/user/hooks';
2 import { getPrimaryRecoverySecret } from '@proton/shared/lib/recoveryFile/recoveryFile';
4 const usePrimaryRecoverySecret = () => {
5     const [{ Keys }] = useUser();
6     return getPrimaryRecoverySecret(Keys);
7 };
9 export default usePrimaryRecoverySecret;