mapcomplete/UI/BigComponents/BackToIndex.ts

19 lines
502 B
TypeScript
Raw Normal View History

2022-01-18 21:26:07 +01:00
import {SubtleButton} from "../Base/SubtleButton";
import Svg from "../../Svg";
import Translations from "../i18n/Translations";
import BaseUIElement from "../BaseUIElement";
export default class BackToIndex extends SubtleButton {
2022-01-26 21:40:38 +01:00
constructor(message?: string | BaseUIElement) {
2022-01-18 21:26:07 +01:00
super(
Svg.back_svg().SetStyle("height: 1.5rem;"),
2022-01-26 21:40:38 +01:00
message ?? Translations.t.general.backToMapcomplete,
2022-01-18 21:26:07 +01:00
{
2022-01-24 03:09:21 +01:00
url: "index.html"
2022-01-18 21:26:07 +01:00
}
)
}
2022-01-26 21:40:38 +01:00
2022-01-18 21:26:07 +01:00
}