MapComplete/UI/Base/LoginButton.svelte

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
579 B
Svelte
Raw Normal View History

<script lang="ts">
2023-05-14 03:24:13 +02:00
import {OsmConnection} from "../../Logic/Osm/OsmConnection";
import Translations from "../i18n/Translations.js";
import Tr from "./Tr.svelte";
import ToSvelte from "./ToSvelte.svelte";
import Svg from "../../Svg";
2023-05-14 03:24:13 +02:00
export let osmConnection: OsmConnection
export let clss = ""
</script>
2023-05-14 03:24:13 +02:00
<button class={clss} on:click={() => osmConnection.AttemptLogin()}>
<ToSvelte construct={Svg.login_svg().SetClass("w-12 m-1")}/>
<slot name="message">
<Tr t={Translations.t.general.loginWithOpenStreetMap}/>
</slot>
</button>