UNPKG

@ledgerhq/live-common

Version:
25 lines 656 B
async function getDeviceTransactionConfig({ transaction: { tag }, status: { amount, estimatedFees }, }) { const fields = []; if (!amount.isZero()) { fields.push({ type: "amount", label: "Amount", }); } if (!estimatedFees.isZero()) { fields.push({ type: "fees", label: "Fees", }); } if (typeof tag === "number") { fields.push({ type: "text", label: "Tag", value: String(tag), }); } return fields; } export default getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.js.map