import React from 'react'; import PropTypes from 'prop-types'; import { useHistory } from 'react-router-dom'; import { useI18nContext } from '../../../hooks/useI18nContext'; // Components import Box from '../../ui/box'; import Button from '../../ui/button'; import Popover from '../../ui/popover'; import Typography from '../../ui/typography'; // Helpers import { DISPLAY, TEXT_ALIGN, TypographyVariant, BLOCK_SIZES, FONT_WEIGHT, JustifyContent, TextColor, } from '../../../helpers/constants/design-system'; import { ONBOARDING_UNLOCK_ROUTE } from '../../../helpers/constants/routes'; export default function RecoveryPhraseReminder({ onConfirm, hasBackedUp }) { const t = useI18nContext(); const history = useHistory(); const handleBackUp = () => { history.push(ONBOARDING_UNLOCK_ROUTE); }; return ( {t('recoveryPhraseReminderSubText')}
  • {t('recoveryPhraseReminderItemOne')}
  • {t('recoveryPhraseReminderItemTwo')}
  • {hasBackedUp ? ( t('recoveryPhraseReminderHasBackedUp') ) : ( <> {t('recoveryPhraseReminderHasNotBackedUp')} )}
); } RecoveryPhraseReminder.propTypes = { hasBackedUp: PropTypes.bool.isRequired, onConfirm: PropTypes.func.isRequired, };