import React, { FC } from "react"; import { Center, Spinner, VStack } from "native-base"; import { isEmpty, noop } from "lodash"; import { Platform } from "react-native"; import { TransTitle, TransText } from "../../../core/layout"; import { Web3ActionButton } from "../../../advanced"; import { useClaimContext } from "../context"; import { useGoodId } from "../../../hooks"; export const StartClaim: FC<{ connectedAccount: string }> = ({ connectedAccount }) => { const { account, chainId, supportedChains, onConnect } = useClaimContext(); const { certificates } = useGoodId(account ?? ""); // navigation to either upgrade flow / claim flow / or showing an eligible offer // is handled in the ClaimWizardWrapper // this loader is for awaiting the 'next step decision' if ((!isEmpty(certificates) || !chainId) && (account || connectedAccount)) return ; return (
); };