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 { COLORS, DISPLAY, TEXT_ALIGN, TYPOGRAPHY, BLOCK_SIZES, FONT_WEIGHT, JUSTIFY_CONTENT, } from '../../../helpers/constants/design-system'; import { INITIALIZE_BACKUP_SEED_PHRASE_ROUTE } from '../../../helpers/constants/routes'; export default function RecoveryPhraseReminder({ onConfirm, hasBackedUp }) { const t = useI18nContext(); const history = useHistory(); const handleBackUp = () => { history.push(INITIALIZE_BACKUP_SEED_PHRASE_ROUTE); }; return ( {t('recoveryPhraseReminderSubText')}
  • {t('recoveryPhraseReminderItemOne')}
  • {t('recoveryPhraseReminderItemTwo')}
  • {hasBackedUp ? ( t('recoveryPhraseReminderHasBackedUp') ) : ( <> {t('recoveryPhraseReminderHasNotBackedUp')} )}
); } RecoveryPhraseReminder.propTypes = { hasBackedUp: PropTypes.bool.isRequired, onConfirm: PropTypes.func.isRequired, };