import { Badge, Button, 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 CancelButton from './cancel-button' import { SubmitButton } from './form' export function WalletCard ({ title, badges, provider, enabled }) { const isConfigured = enabled === true || enabled === false return (
{title} {badges?.map( badge => {badge} )} {provider && {isConfigured ? <>configure : <>attach} } ) } export function WalletButtonBar ({ enabled, disable, className, children, onDelete, onCancel, hasCancel = true, createText = 'attach', deleteText = 'unattach', editText = 'save' }) { return (
{enabled !== undefined && } {children}
{hasCancel && } {enabled ? editText : createText}
) }