/**
* Copyright (c) 2018 - present Zilliqa Research Pte. Ltd.
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see .
*/
import React, { useState, useEffect } from 'react';
import { Card, Label, Input, FormGroup, Form, Row, Col, FormFeedback } from 'reactstrap';
import Steps, { Step } from 'rc-steps';
import Button from '../button';
import Spinner from '../spinner';
import { getInputValidationState, downloadObjectAsJson } from '../../utils';
import { requestStatus } from '../../constants';
import Disclaimer from '../disclaimer';
const FIRST_STEP = 0;
const SECOND_STEP = 1;
const FINAL_STEP = 2;
const GenerateForm: React.FunctionComponent = () => {
const [currentStep, setCurrentStep] = useState(FIRST_STEP);
const [privateKey, setPrivateKey] = useState();
const [passphrase, setPassphrase] = useState('');
return (
{`The password for your keystore file for a new wallet has been set. Please click the tab below to generate your keystore to setup your wallet and move on to the last step.`}