MapComplete/src/UI/Base/LogoutButton.svelte

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

20 lines
518 B
Svelte
Raw Normal View History

<script lang="ts">
2023-12-01 15:23:28 +01:00
import { OsmConnection } from "../../Logic/Osm/OsmConnection"
import Translations from "../i18n/Translations"
import Tr from "./Tr.svelte"
2024-06-17 04:27:08 +02:00
import ArrowRightOnRectangle from "@babeard/svelte-heroicons/solid/ArrowRightOnRectangle"
2023-12-19 22:08:00 +01:00
export let osmConnection: OsmConnection
2024-08-29 03:53:54 +02:00
export let clss = ""
</script>
2023-12-01 15:23:28 +01:00
<button
2024-08-29 03:53:54 +02:00
class={clss}
2023-12-01 15:23:28 +01:00
on:click={() => {
osmConnection.LogOut()
2023-12-01 15:23:28 +01:00
}}
>
2024-09-02 12:48:15 +02:00
<ArrowRightOnRectangle class="h-6 max-h-full w-6" />
2023-11-22 19:39:19 +01:00
<Tr t={Translations.t.general.logout} />
</button>