wallet-core/packages/anastasis-webui/src/pages/home/TruthsPayingScreen.tsx

26 lines
727 B
TypeScript
Raw Normal View History

2021-10-19 15:56:52 +02:00
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>
);
}