mapcomplete/UI/ImportFlow/Introdution.ts

20 lines
715 B
TypeScript
Raw Normal View History

import Combine from "../Base/Combine";
import {FlowStep} from "./FlowStep";
import {UIEventSource} from "../../Logic/UIEventSource";
import Translations from "../i18n/Translations";
import Title from "../Base/Title";
export default class Introdution extends Combine implements FlowStep<void> {
readonly IsValid: UIEventSource<boolean> = new UIEventSource<boolean>(true);
readonly Value: UIEventSource<void> = new UIEventSource<void>(undefined);
2022-01-26 21:40:38 +01:00
constructor() {
super([
2022-01-26 21:40:38 +01:00
new Title(Translations.t.importHelper.title),
Translations.t.importHelper.description,
Translations.t.importHelper.importFormat,
]);
this.SetClass("flex flex-col")
}
2022-01-26 21:40:38 +01:00
}