aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/pages/home/StartScreen.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/StartScreen.tsx')
-rw-r--r--packages/anastasis-webui/src/pages/home/StartScreen.tsx14
1 files changed, 14 insertions, 0 deletions
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>
+ );
+}