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