import Link from 'next/link'
import Button from 'react-bootstrap/Button'
import { useInvoiceable } from './invoice'
import { Alert } from 'react-bootstrap'
import { useState } from 'react'
export default function FundError ({ onClose, amount, onPayment }) {
const [error, setError] = useState(null)
const createInvoice = useInvoiceable(onPayment, { forceInvoice: true })
return (
<>
{error &&
you need more sats