import { Amounts, Transaction } from "@gnu-taler/taler-util"; import { PendingTaskInfo } from "@gnu-taler/taler-wallet-core"; import { Fragment, h, VNode } from "preact"; import { Avatar } from "../mui/Avatar"; import { Typography } from "../mui/Typography"; import Banner from "./Banner"; import { Time } from "./Time"; interface Props { transactions: Transaction[]; } export function PendingTransactions({ transactions }: Props) { return ( { const amount = Amounts.parseOrThrow(t.amountEffective); return { icon: ( {t.type.substring(0, 1)} ), description: ( {amount.currency} {Amounts.stringifyValue(amount)} {" "} - ), }; })} /> ); } export default PendingTransactions;