import React, { useContext } from "react" import { Box } from "@mui/material" import { WalletType } from "@rarible/sdk-wallet" import { useParams } from "react-router-dom" import { Page } from "../../components/page" import { CommentedBlock } from "../../components/common/commented-block" import { FormStepper } from "../../components/common/form-stepper" import { RequestResult } from "../../components/common/request-result" import { TransferForm } from "./transfer-form" import { TransactionInfo } from "../../components/common/transaction-info" import { UnsupportedBlockchainWarning } from "../../components/common/unsupported-blockchain-warning" import { ConnectorContext } from "../../components/connector/sdk-connection-provider" import { TransferComment } from "./comments/transfer-comment" import { TransferPrepareForm } from "./transfer-prepare-form" function validateConditions(blockchain: WalletType | undefined): boolean { return !!blockchain } export function TransferPage() { const params = useParams() const connection = useContext(ConnectorContext) const blockchain = connection.sdk?.wallet?.walletType return ( { !validateConditions(blockchain) && ( ) } }> { return } }, { label: "Send Transaction", render: (onComplete, lastResponse) => { return } }, { label: "Done", render: (onComplete, lastResponse) => { return } /> } } ]} /> ) }