2023-11-19 04:38:34 +01:00
|
|
|
<script lang="ts">
|
2023-12-01 15:23:28 +01:00
|
|
|
import { OsmConnection } from "../../Logic/Osm/OsmConnection"
|
|
|
|
import Logout from "../../assets/svg/Logout.svelte"
|
|
|
|
import Translations from "../i18n/Translations"
|
|
|
|
import Tr from "./Tr.svelte"
|
2023-11-19 04:38:34 +01:00
|
|
|
|
2023-11-22 19:39:19 +01:00
|
|
|
export let osmConnection: OsmConnection;
|
2023-11-19 04:38:34 +01:00
|
|
|
</script>
|
|
|
|
|
2023-12-01 15:23:28 +01:00
|
|
|
<button
|
|
|
|
on:click={() => {
|
2023-12-04 16:09:30 +01:00
|
|
|
osmConnection.LogOut()
|
2023-12-01 15:23:28 +01:00
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Logout class="h-6 w-6" />
|
2023-11-22 19:39:19 +01:00
|
|
|
<Tr t={Translations.t.general.logout} />
|
2023-11-19 04:38:34 +01:00
|
|
|
</button>
|