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

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

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

diff --git a/packages/anastasis-webui/src/pages/home/StartScreen.tsx b/packages/anastasis-webui/src/pages/home/StartScreen.tsx
new file mode 100644
index 000000000..38124887c
--- /dev/null
+++ b/packages/anastasis-webui/src/pages/home/StartScreen.tsx
@@ -0,0 +1,14 @@
+import { h, VNode } from "preact";
+import { AnastasisReducerApi } from "../../hooks/use-anastasis-reducer";
+import { AnastasisClientFrame } from "./index";
+
+export function StartScreen(props: { reducer: AnastasisReducerApi; }): VNode {
+  return (
+    <AnastasisClientFrame hideNav title="Home">
+      <button autoFocus onClick={() => props.reducer.startBackup()}>
+        Backup
+      </button>
+      <button onClick={() => props.reducer.startRecover()}>Recover</button>
+    </AnastasisClientFrame>
+  );
+}
-- 
cgit v1.2.3

