import type { Theme } from '@mui/material'; import { styled } from '@mui/material'; import type { Wallet } from '@solana/wallet-adapter-react'; import type { DetailedHTMLProps, FC, ImgHTMLAttributes } from 'react'; import React from 'react'; const Img = styled('img')(({ theme }: { theme: Theme }) => ({ width: theme.spacing(3), height: theme.spacing(3), })); export interface WalletIconProps extends DetailedHTMLProps, HTMLImageElement> { wallet: Wallet | null; } export const WalletIcon: FC = ({ wallet, ...props }) => { return wallet && {`${wallet.adapter.name}; };