blob: 38124887ca722275db8efd3ea84b1ba928465d2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>
);
}
|