1 import type RecoveryStatus from './RecoveryStatus';
4 accountRecoveryStatus: RecoveryStatus;
5 dataRecoveryStatus: RecoveryStatus;
6 isDataRecoveryAvailable: boolean;
9 export const getOverallStatus = ({
10 accountRecoveryStatus,
12 isDataRecoveryAvailable,
13 }: Props): RecoveryStatus => {
14 if (accountRecoveryStatus !== 'complete') {
18 if (isDataRecoveryAvailable && dataRecoveryStatus !== 'complete') {
19 return 'intermediate';