import { AmountJson, Amounts, parsePaytoUri } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType"; import { QR } from "../components/QR"; import { ButtonDestructive, WarningBox } from "../components/styled"; import { amountToString } from "../utils/index"; export interface Props { reservePub: string; payto: string; exchangeBaseUrl: string; amount: AmountJson; onBack: () => void; } export function ReserveCreated({ reservePub, payto, onBack, exchangeBaseUrl, amount, }: Props): VNode { const paytoURI = parsePaytoUri(payto); // const url = new URL(paytoURI?.targetPath); if (!paytoURI) { return
could not parse payto uri from exchange {payto}
; } return (

Exchange is ready for withdrawal!

To complete the process you need to wire{" "} {amountToString(amount)} to the exchange bank account

Make sure to use the correct subject, otherwise the money will not arrive in this wallet.

Alternative, you can also scan this QR code or open{" "} this link if you have a banking app installed that supports RFC 8905

); }