import { Button, Box, Center, Spacer, HStack, FormControl, Input, } from "@chakra-ui/react"; import SupportedDapps from "./SupportedDapps"; import AppUrlLabel from "./AppUrlLabel"; interface IFrameConnectTabParams { networkId: number; initIFrame: (_inputAppUrl?: string | undefined) => Promise; inputAppUrl: string | undefined; setInputAppUrl: (value: string | undefined) => void; appUrl: string | undefined; bg: string; isIFrameLoading: boolean; setIsIFrameLoading: (value: boolean) => void; iframeKey: number; iframeRef: React.RefObject | null; } function IFrameConnectTab({ networkId, initIFrame, setInputAppUrl, inputAppUrl, bg, isIFrameLoading, appUrl, iframeKey, iframeRef, setIsIFrameLoading, }: IFrameConnectTabParams) { return ( <> setInputAppUrl(e.target.value)} bg={bg} />
{appUrl && ( setIsIFrameLoading(false)} /> )}
); } export default IFrameConnectTab;