diff --git a/Languages/en/Dapp_template/components/checkout.tsx b/Languages/en/Dapp_template/components/checkout.tsx new file mode 100644 index 0000000..6ff843a --- /dev/null +++ b/Languages/en/Dapp_template/components/checkout.tsx @@ -0,0 +1,56 @@ + +type TProps = { + gas?: string; + gasPrice?: string; + cost?: string; + transaction?: string; + nonGas?: boolean; +} + +const Checkout = (props: TProps) => { + const { gas, gasPrice, cost, transaction, nonGas } = props; + + return ( +
+
+
Execute trade:
+
{transaction}
+
+
+
Transaction fee:
+
{gas} ETH
+
+
+
Gas price:
+
{gasPrice} ETH
+
+ + {!nonGas && ( +
+
actual payment:
+
{cost} ETH
+
+ )} + + {nonGas && ( + <> +
+
Estimated cost (original):
+
{cost} ETH
+
+ +
+
Actual payment:
+
+ (-0 ETH) + 1 WTF +
+
+ + )} + +
+ ) +} + +export default Checkout;