// Copyright 2019-2026 @polkadot/extension-ui authors & contributors // SPDX-License-Identifier: Apache-2.0 import React, { useCallback, useState } from 'react'; import { ButtonArea, Checkbox, MnemonicSeed, NextStepButton, VerticalSpace, Warning } from '../../components/index.js'; import { useToast, useTranslation } from '../../hooks/index.js'; interface Props { onNextStep: () => void; seed: string; } function Mnemonic ({ onNextStep, seed }: Props): React.ReactElement { const { t } = useTranslation(); const [isMnemonicSaved, setIsMnemonicSaved] = useState(false); const { show } = useToast(); const _onCopy = useCallback((): void => { show(t('Copied')); }, [show, t]); return ( <> {t("Please write down your wallet's mnemonic seed and keep it in a safe place. The mnemonic can be used to restore your wallet. Keep it carefully to not lose your assets.")} {t('Next step')} ); } export default React.memo(Mnemonic);