import type { Wallet } from '@solana/wallet-adapter-react'; import type { DetailedHTMLProps, FC, ImgHTMLAttributes } from 'react'; import React from 'react'; export interface WalletIconProps extends DetailedHTMLProps, HTMLImageElement> { wallet: { adapter: Pick } | null; } export const WalletIcon: FC = ({ wallet, ...props }) => { return wallet && {`${wallet.adapter.name}; };