@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
25 lines • 656 B
JavaScript
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