2025-07-04 13:22:19 +00:00
|
|
|
<script lang="ts">
|
2025-08-18 20:26:28 +00:00
|
|
|
import {dissoc} from "@welshman/lib"
|
|
|
|
|
import {pubkey, updateSession} from "@welshman/app"
|
2025-07-04 13:22:19 +00:00
|
|
|
import Confirm from "@lib/components/Confirm.svelte"
|
2025-08-21 22:01:31 +00:00
|
|
|
import {clearModals} from "@app/util/modal"
|
2025-07-04 13:22:19 +00:00
|
|
|
|
|
|
|
|
const confirm = async () => {
|
2025-08-18 20:26:28 +00:00
|
|
|
updateSession($pubkey!, dissoc("wallet"))
|
2025-07-04 13:22:19 +00:00
|
|
|
|
|
|
|
|
clearModals()
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<Confirm
|
|
|
|
|
{confirm}
|
|
|
|
|
title="Disconnect Wallet"
|
|
|
|
|
message="Are you sure you want to disconnect your bitcoin wallet?" />
|