import { Button } from 'react-bootstrap' import CancelButton from './cancel-button' import { SubmitButton } from './form' import { isConfigured } from '@/wallets/common' export default function WalletButtonBar ({ wallet, disable, className, children, onDelete, onCancel, hasCancel = true, createText = 'attach', deleteText = 'detach', editText = 'save' }) { return (
{isConfigured(wallet) && } {children}
{hasCancel && } {isConfigured(wallet) ? editText : createText}
) }