export default function PayerData ({ data, className, header = false }) { const supportedPayerData = ['name', 'pubkey', 'email', 'identifier'] if (!data) { return null } return (
{header && sender information:} {Object.entries(data) // Don't display unsupported keys .filter(([key]) => supportedPayerData.includes(key)) .map(([key, value]) => { return
{value} ({key})
})}
) }