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/RecoveryFinishedScreen.tsx           | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx

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

diff --git a/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx
new file mode 100644
index 000000000..7ef9f345c
--- /dev/null
+++ b/packages/anastasis-webui/src/pages/home/RecoveryFinishedScreen.tsx
@@ -0,0 +1,17 @@
+import {
+  bytesToString,
+  decodeCrock
+} from "@gnu-taler/taler-util";
+import { h, VNode } from "preact";
+import { RecoveryReducerProps, AnastasisClientFrame } from "./index";
+
+export function RecoveryFinishedScreen(props: RecoveryReducerProps): VNode {
+  return (
+    <AnastasisClientFrame title="Recovery Finished" hideNext>
+      <h1>Recovery Finished</h1>
+      <p>
+        Secret: {bytesToString(decodeCrock(props.recoveryState.core_secret?.value!))}
+      </p>
+    </AnastasisClientFrame>
+  );
+}
-- 
cgit v1.2.3

