import QRCode from 'qrcode.react' import { InputGroup } from 'react-bootstrap' import Moon from '../svgs/moon-fill.svg' import copy from 'clipboard-copy' import Thumb from '../svgs/thumb-up-fill.svg' import { useState } from 'react' import BootstrapForm from 'react-bootstrap/Form' import Button from 'react-bootstrap/Button' export function Invoice ({ invoice }) { const [copied, setCopied] = useState(false) const qrValue = 'lightning:' + invoice.toUpperCase() return ( <>
{ copy(invoice) setCopied(true) setTimeout(() => setCopied(false), 1500) }} >
) } export function InvoiceStatus ({ skeleton }) { return (
{skeleton ? 'generating' : 'waiting for you'}
) } export function InvoiceSkeleton () { return ( <>
) }