2025-07-07 20:58:43 +00:00
|
|
|
<script lang="ts">
|
2026-08-22 20:12:11 +00:00
|
|
|
import {removeUndefined} from "@welshman/lib"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {Zappers} from "@welshman/app"
|
2025-09-10 22:26:39 +00:00
|
|
|
import AltArrowLeft from "@assets/icons/alt-arrow-left.svg?dataurl"
|
2025-07-07 20:58:43 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
|
|
|
|
import Button from "@lib/components/Button.svelte"
|
|
|
|
|
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
2026-02-02 18:09:14 +00:00
|
|
|
import ModalTitle from "@lib/components/ModalTitle.svelte"
|
2025-07-07 20:58:43 +00:00
|
|
|
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
2026-01-30 22:14:12 +00:00
|
|
|
import Modal from "@lib/components/Modal.svelte"
|
|
|
|
|
import ModalBody from "@lib/components/ModalBody.svelte"
|
2025-07-07 20:58:43 +00:00
|
|
|
import ProfileLink from "@app/components/ProfileLink.svelte"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {app} from "@app/core"
|
2025-07-07 20:58:43 +00:00
|
|
|
|
2026-07-28 16:16:26 +00:00
|
|
|
type Props = {
|
2026-08-22 20:12:11 +00:00
|
|
|
url?: string
|
2026-07-28 16:16:26 +00:00
|
|
|
pubkey: string
|
|
|
|
|
}
|
2025-07-07 20:58:43 +00:00
|
|
|
|
2026-08-22 20:12:11 +00:00
|
|
|
const {url, pubkey}: Props = $props()
|
2026-07-28 16:16:26 +00:00
|
|
|
|
2026-08-22 20:12:11 +00:00
|
|
|
const zapper = $app.use(Zappers).forPubkey(pubkey, removeUndefined([url])).$
|
2025-07-07 20:58:43 +00:00
|
|
|
|
|
|
|
|
const back = () => history.back()
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-01-30 22:14:12 +00:00
|
|
|
<Modal>
|
|
|
|
|
<ModalBody>
|
|
|
|
|
<ModalHeader>
|
2026-02-02 18:09:14 +00:00
|
|
|
<ModalTitle>Unable to Zap</ModalTitle>
|
2026-01-30 22:14:12 +00:00
|
|
|
</ModalHeader>
|
|
|
|
|
<p>
|
2026-04-07 21:53:19 +00:00
|
|
|
Zapping <ProfileLink {pubkey} class="text-primary!" /> isn't possible right now because
|
2026-01-30 22:14:12 +00:00
|
|
|
{#if $zapper}
|
|
|
|
|
their zap receiver isn't correctly set up.
|
|
|
|
|
{:else}
|
|
|
|
|
they don't currently have a zap receiver set up.
|
|
|
|
|
{/if}
|
|
|
|
|
</p>
|
|
|
|
|
</ModalBody>
|
2025-07-07 20:58:43 +00:00
|
|
|
<ModalFooter>
|
2026-06-24 20:56:53 +00:00
|
|
|
<Button class="button button-link" onclick={back}>
|
2025-09-10 22:26:39 +00:00
|
|
|
<Icon icon={AltArrowLeft} />
|
2025-07-07 20:58:43 +00:00
|
|
|
Go back
|
|
|
|
|
</Button>
|
|
|
|
|
</ModalFooter>
|
2026-01-30 22:14:12 +00:00
|
|
|
</Modal>
|