import { ReloadIcon } from "@radix-ui/react-icons"; import type { ThirdwebClient } from "../../../../client/client.js"; import type { WalletId } from "../../../../wallets/wallet-types.js"; import { iconSize, spacing } from "../../../core/design-system/index.js"; import { WalletLogoSpinner } from "../../ui/ConnectWallet/screens/WalletLogoSpinner.js"; import { Container, Line, ModalHeader } from "../../ui/components/basic.js"; import { Button } from "../../ui/components/buttons.js"; import { Spacer } from "../../ui/components/Spacer.js"; import { Text } from "../../ui/components/text.js"; /** * @internal */ export const ConnectingScreen: React.FC<{ onBack?: () => void; walletId: WalletId; walletName: string; onGetStarted?: () => void; errorConnecting: boolean; onRetry: () => void; locale: { getStartedLink: string; tryAgain: string; instruction: string; failed: string; inProgress: string; }; client: ThirdwebClient; size: "compact" | "wide"; }> = (props) => { const { locale } = props; return ( {props.errorConnecting ? locale.failed : locale.inProgress} {!props.errorConnecting ? ( {locale.instruction} ) : ( )} {props.onGetStarted ? ( <> ) : ( )} ); };