blob: 5b8a835b8e2dda5b2b3db7e1311e9c8b78372558 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { h, VNode } from "preact";
import { BackupReducerProps, AnastasisClientFrame } from "./index";
export function TruthsPayingScreen(props: BackupReducerProps): VNode {
const payments = props.backupState.payments ?? [];
return (
<AnastasisClientFrame
hideNext
title="Backup: Authentication Storage Payments"
>
<p>
Some of the providers require a payment to store the encrypted
authentication information.
</p>
<ul>
{payments.map((x, i) => {
return <li key={i}>{x}</li>;
})}
</ul>
<button onClick={() => props.reducer.transition("pay", {})}>
Check payment status now
</button>
</AnastasisClientFrame>
);
}
|