import { h, VNode } from "preact";
import { useAnastasisContext } from "../../context/anastasis";
import { AnastasisClientFrame } from "./index";
export function PoliciesPayingScreen(): VNode {
const reducer = useAnastasisContext();
if (!reducer) {
return
no reducer in context
;
}
if (
!reducer.currentReducerState ||
reducer.currentReducerState.backup_state === undefined
) {
return invalid state
;
}
const payments = reducer.currentReducerState.policy_payment_requests ?? [];
return (
Some of the providers require a payment to store the encrypted recovery
document.
{payments.map((x, i) => {
return (
-
{x.provider}: {x.payto}
);
})}
);
}