Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / components / hooks / useIsDataRecoveryAvailable.ts
blob3ff52baf2c770a85425a3fbb8f65cd86ac825587
1 import useIsRecoveryFileAvailable from '@proton/components/hooks/recoveryFile/useIsRecoveryFileAvailable';
3 import useIsMnemonicAvailable from './useIsMnemonicAvailable';
5 const useIsDataRecoveryAvailable = () => {
6     const [isRecoveryFileAvailable, loadingIsRecoveryFileAvailable] = useIsRecoveryFileAvailable();
7     const [isMnemonicAvailable, loadingIsMnemonicAvailable] = useIsMnemonicAvailable();
9     const isDataRecoveryAvailable = isRecoveryFileAvailable || isMnemonicAvailable;
11     return [isDataRecoveryAvailable, loadingIsRecoveryFileAvailable || loadingIsMnemonicAvailable];
14 export default useIsDataRecoveryAvailable;