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;