import { decode } from 'bolt11' import AccordianItem from './accordian-item' import { CopyInput } from './form' export default ({ bolt11, preimage }) => { const { tagsObject: { description, payment_hash: paymentHash } } = decode(bolt11) if (!description && !paymentHash && !preimage) { return null } return (
{description && } {paymentHash && } {preimage && } } />
) }