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 }) {
return (
{title}
{badges?.map(
badge =>
{badge}
)}
{provider &&
{enabled
? <>configure>
: <>attach>}
}
)
}
export function WalletButtonBar ({
enabled, disable,
className, children, onDelete, onCancel, hasCancel = true,
createText = 'attach', deleteText = 'unattach', editText = 'save'
}) {
return (
{enabled &&
}
{children}
{hasCancel && }
{enabled ? editText : createText}
)
}