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"
|
2024-01-22 04:08:19 +01:00
|
|
|
import Login from "../../assets/svg/Login.svelte"
|
2024-06-17 04:27:08 +02:00
|
|
|
import ArrowRightOnRectangle from "@babeard/svelte-heroicons/solid/ArrowRightOnRectangle"
|
|
|
|
|
import ArrowLeftOnRectangle from "@babeard/svelte-heroicons/solid/ArrowLeftOnRectangle"
|
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
|
2024-05-21 01:49:52 +02:00
|
|
|
|
2024-06-16 16:06:26 +02:00
|
|
|
if (osmConnection === undefined) {
|
2024-05-21 01:49:52 +02:00
|
|
|
console.error("No osmConnection passed into loginButton")
|
|
|
|
|
}
|
2023-04-06 01:33:08 +02:00
|
|
|
</script>
|
|
|
|
|
|
2024-01-02 18:23:36 +01:00
|
|
|
<button class={clss} on:click={() => osmConnection.AttemptLogin()} style="margin-left: 0">
|
2024-06-17 04:27:08 +02:00
|
|
|
<ArrowLeftOnRectangle class="m-1 w-12" />
|
2023-12-04 16:09:30 +01:00
|
|
|
<slot>
|
2023-06-14 20:39:36 +02:00
|
|
|
<Tr t={Translations.t.general.loginWithOpenStreetMap} />
|
|
|
|
|
</slot>
|
2023-05-14 03:24:13 +02:00
|
|
|
</button>
|