import { Badge, 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' export default function WalletCard ({ wallet, draggable, onDragStart, onDragEnter, onDragEnd, onTouchStart, sourceIndex, targetIndex, index }) { const { card: { title, badges } } = wallet.def let indicator = styles.disabled switch (wallet.status) { case Status.Enabled: indicator = styles.success break default: indicator = styles.disabled break } return (
{wallet.status === Status.Enabled && }
{title} {badges?.map( badge => {badge} )} {isConfigured(wallet) ? <>configure : <>attach} ) }