import styled from "@emotion/styled"; import type { ThirdwebClient } from "../../../../../client/client.js"; import { shortenAddress } from "../../../../../utils/address.js"; import { AccountProvider } from "../../../../core/account/provider.js"; import { useCustomTheme } from "../../../../core/design-system/CustomThemeProvider.js"; import { fontSize, iconSize, radius, spacing, } from "../../../../core/design-system/index.js"; import { WalletProvider } from "../../../../core/wallet/provider.js"; import { Container } from "../../components/basic.js"; import { Button } from "../../components/buttons.js"; import { AccountAvatar } from "../../prebuilt/Account/avatar.js"; import { AccountBlobbie } from "../../prebuilt/Account/blobbie.js"; import { AccountName } from "../../prebuilt/Account/name.js"; import { WalletIcon } from "../../prebuilt/Wallet/icon.js"; import type { ActiveWalletInfo } from "../swap-widget/types.js"; export function ActiveWalletDetails(props: { activeWalletInfo: ActiveWalletInfo; client: ThirdwebClient; onClick: () => void; }) { const wallet = props.activeWalletInfo.activeWallet; const account = props.activeWalletInfo.activeAccount; const accountBlobbie = ( ); const accountAvatarFallback = ( ); return ( {shortenAddress(account.address)} } loadingComponent={ {shortenAddress(account.address)} } /> ); } const WalletButton = /* @__PURE__ */ styled(Button)(() => { const theme = useCustomTheme(); return { color: theme.colors.secondaryText, transition: "color 200ms ease", "&:hover": { color: theme.colors.primaryText, }, }; });