2023-04-06 01:33:08 +02:00
|
|
|
<script lang="ts">
|
2023-06-14 20:39:36 +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-04-06 01:33:08 +02:00
|
|
|
|
2023-06-14 20:39:36 +02:00
|
|
|
export let osmConnection: OsmConnection
|
2023-06-15 05:38:52 +02:00
|
|
|
export let clss: string | undefined = undefined
|
2023-04-06 01:33:08 +02:00
|
|
|
</script>
|
|
|
|
|
2023-05-14 03:24:13 +02:00
|
|
|
<button class={clss} on:click={() => osmConnection.AttemptLogin()}>
|
2023-06-14 20:39:36 +02:00
|
|
|
<ToSvelte construct={Svg.login_svg().SetClass("w-12 m-1")} />
|
|
|
|
<slot name="message">
|
|
|
|
<Tr t={Translations.t.general.loginWithOpenStreetMap} />
|
|
|
|
</slot>
|
2023-05-14 03:24:13 +02:00
|
|
|
</button>
|