UNPKG

@ledgerhq/coin-hedera

Version:
37 lines 885 B
function getDeviceTransactionConfig({ transaction, status: { estimatedFees }, }) { const fields = []; if (transaction.useAllAmount) { fields.push({ type: "text", label: "Method", value: "Transfer All", }); } else { fields.push({ type: "text", label: "Method", value: "Transfer", }); } fields.push({ type: "amount", label: "Amount", }); if (!estimatedFees.isZero()) { fields.push({ type: "fees", label: "Fees", }); } if (transaction.memo) { fields.push({ type: "text", label: "Memo", value: transaction.memo, }); } return fields; } export default getDeviceTransactionConfig; //# sourceMappingURL=deviceTransactionConfig.js.map