import React from 'react';
import classnames from 'classnames';
import PropTypes from 'prop-types';
import { capitalize } from 'lodash';
import { useI18nContext } from '../../../hooks/useI18nContext';
import Box from '../../ui/box';
import { BLOCK_SIZES } from '../../../helpers/constants/design-system';
export const threeStepStages = {
PASSWORD_CREATE: 1,
RECOVERY_PHRASE_VIDEO: 2,
RECOVERY_PHRASE_REVIEW: 3,
RECOVERY_PHRASE_CONFIRM: 4,
ONBOARDING_COMPLETE: 5,
};
export const twoStepStages = {
RECOVERY_PHRASE_CONFIRM: 1,
PASSWORD_CREATE: 2,
};
export function ThreeStepProgressBar({ stage }) {
const t = useI18nContext();
return (
- = 1,
complete: stage > 1,
})}
>
{capitalize(t('createPassword'))}
- = 2,
complete: stage > 3,
})}
>
{capitalize(t('secureWallet'))}
- = 4,
complete: stage > 5,
})}
>
{capitalize(t('confirmRecoveryPhrase'))}
);
}
export function TwoStepProgressBar({ stage }) {
const t = useI18nContext();
return (
- = 1,
complete: stage > 1,
})}
>
{capitalize(t('confirmRecoveryPhrase'))}
- = 2,
complete: stage > 2,
})}
>
{capitalize(t('createPassword'))}
);
}
ThreeStepProgressBar.propTypes = {
stage: PropTypes.number,
};
TwoStepProgressBar.propTypes = {
stage: PropTypes.number,
};