From 5883d42d800c7b444c59d626bcaa5abca7dc83d0 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Tue, 19 Oct 2021 10:56:52 -0300
Subject: add template from merchant backoffice

---
 .../src/pages/home/PoliciesPayingScreen.tsx        | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx

(limited to 'packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx')

diff --git a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx
new file mode 100644
index 000000000..be74729eb
--- /dev/null
+++ b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.tsx
@@ -0,0 +1,27 @@
+import { h, VNode } from "preact";
+import { BackupReducerProps, AnastasisClientFrame } from "./index";
+
+export function PoliciesPayingScreen(props: BackupReducerProps): VNode {
+  const payments = props.backupState.policy_payment_requests ?? [];
+
+  return (
+    <AnastasisClientFrame hideNext title="Backup: Recovery Document Payments">
+      <p>
+        Some of the providers require a payment to store the encrypted
+        recovery document.
+      </p>
+      <ul>
+        {payments.map((x, i) => {
+          return (
+            <li key={i}>
+              {x.provider}: {x.payto}
+            </li>
+          );
+        })}
+      </ul>
+      <button onClick={() => props.reducer.transition("pay", {})}>
+        Check payment status now
+      </button>
+    </AnastasisClientFrame>
+  );
+}
-- 
cgit v1.2.3

