import { Card } from 'react-bootstrap' import styles from '@/styles/wallet.module.css' import Plug from '@/svgs/plug.svg' import Gear from '@/svgs/settings-5-fill.svg' import Link from 'next/link' import { Status, isConfigured } from '@/wallets/common' import DraggableIcon from '@/svgs/draggable.svg' import RecvIcon from '@/svgs/arrow-left-down-line.svg' import SendIcon from '@/svgs/arrow-right-up-line.svg' import { useWalletImage } from '@/components/wallet-image' import { useWalletStatus, statusToClass } from '@/components/wallet-status' import { useWalletSupport } from '@/components/wallet-support' export default function WalletCard ({ wallet, draggable, onDragStart, onDragEnter, onDragEnd, onTouchStart, sourceIndex, targetIndex, index }) { const image = useWalletImage(wallet) const status = useWalletStatus(wallet) const support = useWalletSupport(wallet) return (
{status.any !== Status.Disabled && } {support.recv && } {support.send && }
{image ? : {wallet.def.card.title}}
{isConfigured(wallet) ? <>configure : <>attach}
) }