import React, { useState } from 'react'; import { useHistory } from 'react-router-dom'; import PropTypes from 'prop-types'; import Box from '../../../components/ui/box'; import Button from '../../../components/ui/button'; import Typography from '../../../components/ui/typography'; import Copy from '../../../components/ui/icon/copy-icon.component'; import { useCopyToClipboard } from '../../../hooks/useCopyToClipboard'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE } from '../../../helpers/constants/routes'; import { TEXT_ALIGN, TYPOGRAPHY, JUSTIFY_CONTENT, FONT_WEIGHT, } from '../../../helpers/constants/design-system'; import ProgressBar from '../../../components/app/step-progress-bar'; import RecoveryPhraseChips from './recovery-phrase-chips'; export default function RecoveryPhrase({ seedPhrase }) { const history = useHistory(); const t = useI18nContext(); const [copied, handleCopy] = useCopyToClipboard(); const [seedPhraseRevealed, setSeedPhraseRevealed] = useState(false); return (