blob: 2fed23d4ed9d8516967a8a9dbc9d5824262dbbe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { h, VNode } from "preact";
import { CommonReducerProps, AnastasisClientFrame, withProcessLabel } from "./index";
export function ContinentSelectionScreen(props: CommonReducerProps): VNode {
const { reducer, reducerState } = props;
const sel = (x: string): void => reducer.transition("select_continent", { continent: x });
return (
<AnastasisClientFrame
hideNext
title={withProcessLabel(reducer, "Select Continent")}
>
{reducerState.continents.map((x: any) => (
<button onClick={() => sel(x.name)} key={x.name}>
{x.name}
</button>
))}
</AnastasisClientFrame>
);
}
|